Planet Python RSS
216 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