Planet Python RSS
215 subscribers
16.9K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Seth Michael Larson: Winning a bet about “six”, the Python 2 compatibility shim

Link: https://sethmlarson.dev/winning-a-bet-about-six-the-python-2-compatibility-shim?utm_campaign=rss

Exactly five years ago today Andrey Petrov and I made a bet about whether
“six”, the compatibility shim for Python 2 and 3 APIs, would
still be in the top 20 daily downloads on PyPI. I said it would,
Django Weblog: Django security releases issued: 5.2.7, 5.1.13, and 4.2.25

Link: https://www.djangoproject.com/weblog/2025/oct/01/security-releases/

In accordance with our security release policy, the Django team
is issuing releases for
Django 5.2.7,
Django 5.1.13, and
Django 4.2.25.
These releases address the security issues detailed below. We en
Real Python: Python 3.14 Preview: Better Syntax Error Messages

Link: https://realpython.com/python314-error-messages/

Python 3.14 brings a fresh batch of improvements to error messages that’ll make debugging feel less like detective work and more like having a helpful colleague point out exactly what went wrong. Thes
Real Python: Quiz: Python MCP Server: Connect LLMs to Your Data

Link: https://realpython.com/quizzes/python-mcp/

This quiz helps you review the core ideas behind the Model Context Protocol (MCP). You will practice how MCP connects large language models with external systems, how to install it, and what role prom
Real Python: Quiz: Python 3.14 Preview: Better Syntax Error Messages

Link: https://realpython.com/quizzes/python314-error-messages/

This quiz helps you get familiar with the upgraded error messages in Python 3.14. You’ll review new keyword typo suggestions, improved math errors, string prefix feedback, and more.
Put your understan
Real Python: The Real Python Podcast – Episode #268: Advice on Beginning to Learn Python

Link: https://realpython.com/podcasts/rpp/268/

What's changed about learning Python over the last few years? What new techniques and updated advice should beginners have as they start their journey? This week on the show, Stephen Gruppetta and Mar
Luke Plant: Breaking “provably correct” Leftpad

Link: https://lukeplant.me.uk/blog/posts/breaking-provably-correct-leftpad/

I don’t know much about about formal methods, so a while back I read Hillel Wayne’s post Let’s prove Leftpad with interest. However:

I know Donald Knuth’s famous quote: “Beware of bugs in the above c
Mariatta: Disabling Signup in Django allauth

Link: https://mariatta.ca/posts/disabling-signup-django-allauth/

Django allauth
Django allauth is a popular third party package that provides a lot of functionality for handling user authentication,
with support for social authentication, email verification, multi-
Graham Dumpleton: Lazy imports using wrapt

Link: https://grahamdumpleton.me/posts/2025/10/lazy-imports-using-wrapt/

PEP 810 (explicit lazy imports) was recently released for Python. The idea with this PEP is to add explicit syntax for implementing lazy imports for modules in Python.
lazy import json

Lazily importi
Rodrigo Girão Serrão: TIL #134 – = alignment in string formatting

Link: https://mathspp.com/blog/til/-alignment-in-string-formatting


Today I learned how to use the equals sign to align numbers when doing string formatting in Python.
There are three main alignment options in Python's string formatting:



Character
Meaning




<
al
Paolo Melchiorre: My DjangoCon US 2025

Link: https://www.paulox.net/2025/10/05/my-djangocon-us-2025/

A summary of my experience at DjangoCon US 2025 told through the posts I published on Mastodon during the conference.
Daniel Roy Greenfeld: Using pyinstrument to profile Air apps

Link: https://daniel.feldroy.com/posts/2025-10-using-pyinstrument-to-profile-air-apps

Air is built on FastAPI, so we could use pyinstrument's instructions modified. However, because profilers reveal a LOT of internal data, in our example we actively use an environment variable.
You wil
Christian Ledermann: Python Code Quality Tools Beyond Linting

Link: https://dev.to/ldrscke/python-code-quality-tools-beyond-linting-42d8

The landscape of Python software quality tooling is currently defined by two contrasting forces: high-velocity convergence and deep specialization. The recent, rapid adoption of Ruff has solved the lo
Paolo Melchiorre: Django: one ORM to rule all databases 💍

Link: https://www.paulox.net/2025/10/06/django-orm-comparison/

Comparing the Django ORM support across official database backends, so you don’t have to learn it the hard way.
Rodrigo Girão Serrão: Functions: a complete reference | Pydon't 🐍

Link: https://mathspp.com/blog/pydonts/functions-a-complete-reference


This article serves as a complete reference for all the non-trivial things you should know about Python functions.
Functions are the basic building block of any Python program you write, and yet, man
Real Python: It's Almost Time for Python 3.14 and Other Python News

Link: https://realpython.com/python-news-october-2025/

Python 3.14 nears release with new features in sight, and Django 6.0 alpha hints at what’s next for the web framework. Several PEPs have landed, including improvements to type annotations and support
Ari Lamstein: Visualizing 25 years of Border Patrol Data with Python

Link: https://arilamstein.com/blog/2025/10/06/visualizing-25-years-border-patrol-data-python/

I recently had the chance to speak with a statistician at the Department of Homeland Security (DHS) about my Streamlit app that visualizes trends in US Immigration Enforcement data (link). Our convers
Brian Okken: pytest 2.6.0 release

Link: https://pythontest.com/pytest-check-2-6-0/

There’s a new release of pytest-check. Version 2.6.0.
This is a cool contribution from the community.
The problem
In July, bluenote10 reported that check.raises() doesn’t behave like pytest.raises() i