Issue #747

Modern OOP, bisect, Django Async, and More

Aug. 11, 2026

Modern OOP, bisect, Django Async, and More
#747 – AUGUST 11, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
New Book: Modern Object-Oriented Python
Real Python’s new book on classes, Python’s data model, and object-oriented design is out in Early Access. Nine chapters collected from a decade of tutorials, re-edited into one curriculum, and updated for today’s Python.
REAL PYTHON

Binary Search in Python With bisect
Python’s bisect module implements binary search for you. Here’s how bisect_left, bisect_right, and insort work, plus recipes for finding the closest match or all values in a range.
TREY HUNNER

Let AI Agents Into Your B2B App. Securely
More of your users are asking to connect AI agents to your product, and you want to say yes. PropelAuth lets you give each agent scoped, revocable access, so you stay in control of what it can do. Learn More →
PROPELAUTHsponsor

Updates on Django’s Async Story
For years, “Django and async” came with an asterisk. The docs themselves warned you off it, but that has changed. Talk Python interviews Carlton Gibson and they talk async in Django.
TALK PYTHON

PEP 841: Adding Frozen Syntax to Optimize Immutable Types (Draft)
PYTHON.ORG

PEP 833: Freezing the HTML Simple Repository API (Final)
PYTHON.ORG

PEP 828: Supporting ‘Yield From’ in Asynchronous Generators (Accepted)
PYTHON.ORG

PEP 837: Extensible JSON Serialization (Draft)
PYTHON.ORG

Python 3.14.7 and 3.13.15 Released
PYTHON.ORG

Django 6.1 Released
DJANGO SOFTWARE FOUNDATION


Articles & Tutorials


Take the 2026 Python Typing Survey
Now in its third year, the Python Typing Survey has become a recognised reference point for the direction of Python’s type system. It’s being referenced in PEPs and presentations to the Python community. Whether you’re an experienced user of Python types or someone who hasn’t yet written your first type annotation, participating in this survey helps the open-source community make Python better for everyone.
SURVEYMONKEY.COM • Shared by Abby Mitchell

Hydra for Python Configuration: Build Modular and Maintainable Pipelines
Hardcoded paths and parameters can quickly drift out of sync across a data science project’s scripts. This article shows how to move them into Hydra configuration files, access values with dot notation, override settings from the command line, swap entire configuration groups, and run experiment sweeps with a single multirun flag.
CODECUT.AI • Shared by Khuyen Tran

📘 Modern Object-Oriented Python: Write Clean, Pythonic Code With OOP
Learn to design classes that feel native to Python: special methods, inheritance vs. composition, properties, data classes, and the SOLID principles. Get Your Copy →
REAL PYTHONsponsor

asyncio.all_tasks() Could Silently Drop Tasks on the Free-Threaded Build
A concrete example of how free-threading turns old GIL-era assumptions into silent bugs: asyncio.all_tasks() dropping live tasks from another thread. Useful for anyone porting or debugging code under the free-threaded build. Written by the author of the fix.
DEADLOVELLL.GITHUB.IO • Shared by Timofei Ivankov

Celery: From First Task to Advanced Recipes
Celery is a mature distributed task queue for Python, but many practical details aren’t immediately obvious from the documentation. This guide goes from the basic usage to timeouts, retries, preventing parallel execution, and emulating async/await support.
STANISLAV GOLEV • Shared by Stanislav Golev

Programmatically Developing LLM Prompts With DSPy
How can you move from manually writing prompts for an LLM application toward defining them programmatically? This week on the show, Brett Kennedy returns to discuss his new book “Building LLM Applications with DSPy.”
REAL PYTHON podcast

Nifty Django Feature: setUpTestData
The setUp() call in TestCase gets invoked for every single test. Django adds setUpTestData() which only gets called once per test class, meaning your tests can run faster.
TIM SCHILLING

Thoughts on “SIMD in Pure Python”
This article is a response to SIMD in Pure Python and discusses ways of optimizing his code even further.
ALISA SIRENEVA

Since When? Which Python Version Added That
An interesting tool where you paste Python into it to see which version added each feature it uses, or look up a single built-in, module, or piece of syntax.
PYTHONMORSELS.COM

Validating Data With Pointblank in Python
Learn how to validate data in Python with Pointblank: declare quality checks, split clean from failing rows, and rerun validation plans from YAML.
REAL PYTHON

Quiz: Validating Data With Pointblank in Python
REAL PYTHON

Acidica
Ned has written a toy BASIC interpreter in Python. This announcement post tells you why (“for fun”) and talks about the accomplishment.
NED BATCHELDER

Some More Things About Django I’ve Been Enjoying
Julia has been learning Django to create websites in “2010 style”. This post talks about new things she’s picked up along the way.
JULIA EVANS

Sending Emails Using Python
Learn how to send emails with Python using SMTP and smtplib, attach files, format HTML messages, and personalize bulk emails.
REAL PYTHON course

Quiz: Sending Emails Using Python
REAL PYTHON


Projects & Code


Brought to you by Real Pythonsponsor
Online Python Training Created by Experts →

xy: Ultra-Fast and Customizable Python Charts
GITHUB.COM/REFLEX-DEV

autowt: A Better git Worktree Experience
GITHUB.COM/IRSKEP

vscode-marimo: marimo Vscode Extension
GITHUB.COM/MARIMO-TEAM

commerce: Opensource E-Commerce Platform
GITHUB.COM/SPWIG

Build and Inspect Python Packages in GitHub Actions
GITHUB.COM/HYNEK

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
August 12, 2026

Python Nordeste 2026 (PyNE 2026)
August 13 to August 16, 2026

Python Help: Problems to Solutions
August 13, 2026

Python Atlanta
August 13 to August 14, 2026

PyCon Korea 2026
August 15 to August 18, 2026

DjangoCologne
August 18, 2026

PyCon Ghana 2026
August 20 to August 23, 2026

PyCon Latam 2026
August 20 to August 24, 2026

PyCon JP 2026
August 21 to August 24, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.