Planet Python RSS
210 subscribers
18.4K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Armin Ronacher: What is Codemode

Link: https://lucumr.pocoo.org/2026/10/6/codemode/

More than a year ago I wrote a few posts here that recommended people not to
load custom tools into their context (or
MCP servers) but to just
use more scripts. Most importantly I wrote that Code Is
Django Weblog: Django security releases issued: 6.1.2, 6.0.9, and 5.2.18

Link: https://www.djangoproject.com/weblog/2026/oct/06/security-releases/

In accordance with our security release policy,
the Django team is issuing releases for
Django 6.1.2, Django
6.0.9, and Django
5.2.18.
These releases address the security issues detailed below. We enc
PyCoder’s Weekly: Issue #755: 3.15 Gets an RC3, New Feature Rundown, Sampling Profiler, and More (2026-10-06)

Link: https://pycoders.com/issues/755

#755 – OCTOBER 6, 2026 View in Browser » Python Adds a Release: 3.15.0rc3 Due to issues found in the new lazy loading features, an emergency Release Candidate has been adding, delaying Python 3.
Python Bytes: #499 So many questions??

Link: https://pythonbytes.fm/episodes/show/499/so-many-questions

Topics covered in this episode:

PEP 824 brings ?? and ??= to Python for None handling
Python 3.15 gets a surprise RC3, and Python 3.10 reaches end of life
asyncio.shield
Pyxel: the retro game engine
Python GUIs: Using Complex Data Sources with PyQt6 Model/View Architecture — How to use JSON, nested data, and other complex structures in your Qt table and list views

Link: https://www.pythonguis.com/faq/complex-data-in-pyqt-models/


I have a complex data set in a JSON file. Is it possible to use this as my model's data in PyQt6 views, or do I need to simplify it to a basic table?

Great news: you can use any data structure you l
Python GUIs: Change the color of the ProgressBar indicator text when it exceeds 50%

Link: https://www.pythonguis.com/faq/change-the-color-of-the-progressbar-indicator-text-when-it-exceeds-50/


How can I change the text color from black to white of the percentage indicator inside the QProgressBar when it exceeds the value of 50?

When a QProgressBar fills past the halfway mark, the dark-col
LernerPython blog, from Reuven Lerner: Pandas groupby basics: Aggregating a numeric column by category

Link: https://lernerpython.com/2026/10/05/pandas-groupby-basics-aggregating-a-numeric-column-by-category/


The simplest grouping in Python Pandas is groupby:
df.groupby(CATEGORICAL)[NUMERIC].AGG_METHOD()
For example:
df.groupby('passenger_count')['trip_distance'].mean()
Returns a series whose index is the
LernerPython blog, from Reuven Lerner: Pandas groupby with sort=False: Keep groups in order of appearance

Link: https://lernerpython.com/2026/10/06/pandas-groupby-with-sort-false-keep-groups-in-order-of-appearance/


A “groupby” call in Python Pandas is normally sorted by index.
But if you’re grouping by month name, April will come before January.
Pass “sort=False”, and the index will reflect the order of appeara
Eli Bendersky: Monte-Carlo simulations

Link: https://eli.thegreenplace.net/2026/monte-carlo-simulations/

Monte Carlo simulations (or methods) is the technique of applying
randomness and the Law of large numbers
to the solution of various scientific and engineering problems. One of its
first documented us
LernerPython blog, from Reuven Lerner: Pandas groupby with two columns: Reshape results with unstack

Link: https://lernerpython.com/2026/10/07/pandas-groupby-with-two-columns-reshape-results-with-unstack/


Invoke “groupby” with two categorical columns in Python Pandas, and get a two-part multi-index:
g = df.groupby(['passenger_count', 'VendorID'])['trip_distance'].mean()
Turn into a data frame with uns
Django Weblog: Django security reporting update

Link: https://www.djangoproject.com/weblog/2026/oct/08/django-security-reporting-update/

We are no longer accepting new security reports for the Django project through HackerOne. Existing reports submitted through HackerOne will remain open and continue to be handled by the Django Securit
Anarcat: PSA: Europe changes time forward soon, North America next, for the last time?

Link: https://anarc.at/blog/2026-10-08-dst-warning/

This is a copy of an email I sent at work. I'm not sure I
should be making noise about this here, feedback welcome.
This is your bi-yearly reminder that time is changing soon! October 25th
in Europe,
Glyph Lefkowitz: Programming Isn’t Special

Link: https://blog.glyph.im/2026/10/programming-isnt-special.html

Creative Work
Writers went on strike to get protections against “AI”. Thousands of artists have signed open letters in protest of “AI”. There are so many copyright lawsuits from creative industry grou
Rodrigo Girão Serrão: The 5 most exciting new features of Python 3.15

Link: https://mathspp.com/blog/the-5-most-exciting-new-features-of-python-315


This article explains the 5 best new features of Python 3.15 with clear examples and explanations.
Python 3.15 has been published and it packs plenty of new features and improvements over Python 3.14
Wingware: Wing Python IDE 12.1 Beta - October 9, 2026

Link: https://wingware.com/news/2026-10-09

Wing 12.1 is now available as a beta release. It introduces the Tasks
Manager for guided autonomous development. You write the specification,
answer questions, and review results. Agents design and wr
Python Morsels: Python 3.15's best new features

Link: https://www.pythonmorsels.com/python315/

Python 3.15 includes a UTF-8 default encoding, explicit lazy imports, * unpacking in comprehensions, a new sampling profiler, sentinel, frozendict, and more!



Table of contents

A UTF-8 default enco