| | | | Please Don’t Hijack My Python Root Logger Some Python libraries configure the root logger at import time, which can silently override application logging choices. This article walks through the logger hierarchy, shows why libraries should use named loggers with NullHandler, and gives practical patterns that keep logging behavior under the application’s control. REDOWAN DELOWAR • Shared by Redowan Delowar
Why I Wrote PEP 832: Virtual Environment Discovery PEP 832 proposes a way to describe where your virtual environment is so that your tools can look in the right place. Although a relatively simple proposal it has caused some contention in the community. This post by Brett, the PEP’s author, describes his reasoning. BRETT CANNON
An Open-Source Code Reviewer That Runs on Any LLM Your agents open PRs faster than you can review them. pr-af is a multi-agent reviewer that drops into GitHub Actions and runs on the model you already use — open-source, self-hosted, or closed. Every finding ships with evidence. Star it on GitHub → AGENTFIELDsponsor
Django Tasks: Exploring the Built-in Tasks Framework Explore Django Tasks, the new built-in framework in Django 6.0, and run background jobs with @task, named queues, and a lightweight alternative to Celery. REAL PYTHON
Quiz: Django Tasks: Exploring the Built-in Tasks Framework REAL PYTHON
Python 3.15.0 Beta 3 Released PYTHON.ORG
Django 6.1 Beta 1 Released DJANGO SOFTWARE FOUNDATION
Articles & Tutorials Astral Joins OpenAI OpenAI recently acquired Astral, the company behind uv, Ruff, and ty. And if your first thought was ‘wait, is uv toast?’, you are not alone. Talk Python interviews Charlie Marsh and they talk about the acquisition experience and how they’re shipping more code than ever. TALK PYTHON podcast
The Fastest Python Struct? An adventure in Python struct benchmarking: slotted class, NamedTuple, dataclass, attrs, msgspec, record-type, and a new C extension based on record-type and msgspec. Focus is on import-time, type-construction, memory, and instantiation cost. JP HUTCHINS
Codex for Python Developers: A Hands-on Live Course Build a complete Python project from an empty directory with OpenAI’s Codex in this two-day live course (July 11-12). You’ll scaffold, build, debug, and ship a real CLI app using an agent that works inside your codebase. See the Full Curriculum → REAL PYTHONsponsor
Write a Coding Agent From First Principles Learn how to write a coding agent in this Python tutorial that teaches how to interact with an LLM through an API, how to manage the conversation context, and how to do tool calling. RODRIGO GIRÃO SERRÃO • Shared by Rodrigo Girão Serrão
Free Threading Internals: PyMutex This is part 3 in an series about Free Threading internals (removal of the GIL) and talks about PyMutex, a one byte lock with fast inlineable lock and unlock functions. VICTOR STINNER
uv in Production: The Speed Is Real, the Integration Isn’t Free Oleg’s work moved their tooling from pip to uv and lived with it for ~90 days. They discovered that the speed is real, but that doesn’t mean there aren’t complications. OLEG TSVETKOV • Shared by Oleg
Using LlamaIndex for RAG in Python Learn how to set up LlamaIndex, load your data, build and persist an index, and run queries to get grounded answers with RAG in Python. REAL PYTHON course
Quiz: Using LlamaIndex for RAG in Python REAL PYTHON
Python for Data Analysis: A Practical Guide In this tutorial, you’ll learn data analysis with Python by following a structured workflow with pandas, Matplotlib, and scikit-learn. REAL PYTHON
When to Use classmethod, staticmethod, or Instance Methods A simple decision rule for when to use a @classmethod, a @staticmethod, or a plain instance method in Python. BOB BELDERBOS
7 More Common Mistakes in Architecture Diagrams A rundown of seven more common mistakes in system architecture diagrams and how to fix them BILLY PILGER
Projects & Code Brought to you by Real Pythonsponsor Online Python Training Created by Experts → pyappdist: Turn a Python App Into a Native Installer GITHUB.COM/ATSUOISHIMOTO • Shared by Atsuo Ishimtoo
flawed: Framework-Aware Static Analysis for Python Web Apps GITHUB.COM/EXECVEAT • Shared by Andrew Konstantinov
pytest-mrt: Catch Database Migration Rollback Failures GITHUB.COM/CROC100 • Shared by JUNEBEOM BAEK (croc)
linkedin2md: Export LinkedIn Data to Structured Markdown GITHUB.COM/JUANMANUELDAZA • Shared by Juan Manuel Daza
Ozark: Examine Python ASTs, & Bytecode in Your Browser FROMSCRATCHCODE.COM • Shared by Tyler Green
| | | | | |