Planet Python RSS
209 subscribers
18.5K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Real Python: What Does Python's __init__.py Do?

Link: https://realpython.com/courses/init-py/

Python’s special __init__.py file marks a directory as a regular Python package and allows you to import its modules. This file runs automatically the first time you import its containing package. You
Django Weblog: Django security releases issued: 6.0.3, 5.2.12, and 4.2.29

Link: https://www.djangoproject.com/weblog/2026/mar/03/security-releases/

In accordance with our security release policy, the Django team
is issuing releases for
Django 6.0.3,
Django 5.2.12, and
Django 4.2.29.
These releases address the security issues detailed below. We en
Rodrigo Girão Serrão: TIL #140 – Install Jupyter with uv

Link: https://mathspp.com/blog/til/install-jupyter-with-uv


Today I learned how to install jupyter properly while using uv to manage tools.
Running a Jupyter notebook server or Jupyter lab
To run a Jupyter notebook server with uv, you can run the command
$ uv
PyCoder’s Weekly: Issue #724: Unit Testing Performance, Ordering, FastAPI, and More (March 3, 2026)

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

#724 – MARCH 3, 2026 View in Browser » Unit Testing: Catching Speed Changes This second post in a series covers how to use unit testing to ensure the performance of your code. This post talks ab
Glyph Lefkowitz: What Is Code Review For?

Link: https://blog.glyph.im/2026/03/what-is-code-review-for.html

Humans Are Bad At Perceiving
Humans are not particularly good at catching bugs. For one thing, we get tired
easily. There is some science on this, indicating that humans can’t even
maintain enough c
Real Python: Quiz: Automate Python Data Analysis With YData Profiling

Link: https://realpython.com/quizzes/ydata-profiling-eda/

In this quiz, you’ll test your understanding of Automate Python Data Analysis With YData Profiling.
By working through this quiz, you’ll revisit how to generate and display profile reports in a notebo
Real Python: How to Use the OpenRouter API to Access Multiple AI Models via Python

Link: https://realpython.com/openrouter-api/

One of the quickest ways to call multiple AI models from a single Python script is to use OpenRouter’s API, which acts as a unified routing layer between your code and multiple AI providers. By the en
Python Morsels: Invent your own comprehensions in Python

Link: https://www.pythonmorsels.com/custom-comprehensions/

Python doesn't have tuple, frozenset, or Counter comprehensions, but you can invent your own by passing a generator expression to any iterable-accepting callable.


Table of contents

Generator expres
Seth Michael Larson: Relative “Dependency Cooling” in pip v26.0 with crontab

Link: https://sethmlarson.dev/pip-relative-dependency-cooling-with-crontab?utm_campaign=rss


WARNING: Most of this blog post is
a hack, everyone should probably just
wait for relative dependency cooling to come
to a future version of pip.


pip v26.0 added support for the --uploa
Real Python: Quiz: How to Use the OpenRouter API to Access Multiple AI Models via Python

Link: https://realpython.com/quizzes/openrouter-api/

In this quiz, you’ll test your understanding of
How to Use the OpenRouter API to Access Multiple AI Models via Python.
By completing this quiz, you’ll review how OpenRouter provides a unified routing
Armin Ronacher: AI And The Ship of Theseus

Link: https://lucumr.pocoo.org/2026/3/5/theseus/

Because code gets cheaper and cheaper to write, this includes
re-implementations. I mentioned recently that I had an AI port one of my
libraries to another language and it ended up choosing a differe
scikit-learn: Update on array API adoption in scikit-learn

Link: https://blog.scikit-learn.org/updates/update-array-api/

Author: Lucy Liu


Note: this blog post is a cross-post of a Quansight Labs blog post.
The Consortium for Python Data API Standards
developed the Python array API st
The Python Coding Stack: You Store Data and You Do Stuff With Data • The OOP Mindset

Link: https://www.thepythoncodingstack.com/p/python-oop-mindset-you-store-data-and-you-do-stuff-with-data

Learning how to use a tool can be challenging. But learning why you should use that tool–and when–is sometimes even more challenging.In this post, I’ll discuss the OOP mindset–or, let’s say, one way o
Anarcat: Wallabako retirement and Readeck adoption

Link: https://anarc.at/blog/2026-03-05-wallabako-retirement/

Today I have made the tough decision of retiring the Wallabako
project. I have rolled out a final (and trivial) 1.8.0 release which
fixes the uninstall procedure and rolls out a bunch of dependency
up
Real Python: Quiz: How to Use Git: A Beginner's Guide

Link: https://realpython.com/quizzes/how-to-use-git/

In this quiz, you’ll test your understanding of
How to Use Git: A Beginner’s Guide.
By working through this quiz, you’ll revisit the core Git workflow: initializing
a repository, staging changes, maki
Real Python: Quiz: Python Stacks, Queues, and Priority Queues in Practice

Link: https://realpython.com/quizzes/queue-in-python/

In this quiz, you’ll test your understanding of Python stacks, queues, and priority queues.
You’ll review LIFO and FIFO behavior, enqueue and dequeue operations, and how deques work. You’ll implement
Israel Fruchter: Maybe ORM/ODM are not dead? Yet...

Link: http://fruch.github.io/python/2026/03/06/maybe-orm-odm-not-dead-yet

So, let’s pick up where we left off. A couple of weeks ago, I wrote about how I took a 4-year-old fever dream—an ODM for Cassandra and ScyllaDB called coodie—and let an AI build the whole thing while
Peter Bengtsson: logger.error or logger.exception in Python

Link: http://www.peterbe.com/plog/logger.error-or-logger.exception

Consider this Python code:

try:
1 / 0
except Exception as e:
logger.error("An error occurred while dividing by zero.: %s", e)

The output of this is:

An error occurred while dividing by zero
Talk Python to Me: #539: Catching up with the Python Typing Council

Link: https://talkpython.fm/episodes/show/539/catching-up-with-the-python-typing-council

You're adding type hints to your Python code, your editor is happy, autocomplete is working great. But then you switch tools and suddenly there are red squiggles everywhere. Who decides what a float a