Issue #736

Polars Sort-Merge Joins, Zen, Resolving Lazy Imports, and More

May 26, 2026

Polars Sort-Merge Joins, Zen, Resolving Lazy Imports, and More
#736 – MAY 26, 2026 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Streaming Sort-Merge Joins in Polars
“Joins are often one of the most expensive parts of a query. Once tables get large, the join can heavily impact both runtime and memory usage… If the join keys are already sorted, Polars can now take a cheaper path: a streaming sort-merge join.”
THIJS NIEUWDORP

Tapping Into the Zen of Python
Explore the Zen of Python and its 19 guiding principles for writing readable, practical code. Learn its history, jokes, and meaning.
REAL PYTHON course

Quiz: Tapping Into the Zen of Python
REAL PYTHON

FREE Python Error Tracking From Honeybadger – all Signal, no Noise
Production bugs don’t arrive one at a time. Honeybadger groups similar errors into a single issue and lets you pause or ignore alerts in a single click. More signal. Less noise. ⚡ Sign Up for Your FREE Developer Account →
HONEYBADGERsponsor

Resolve a Lazy Import Manually
Learn how to work around the Python 3.15 machinery to resolve an explicit lazy import manually.
RODRIGO GIRÃO SERRÃO

Django 6.1 Alpha 1 Released
Posted by Jacob Walls on May 20, 2026
DJANGO SOFTWARE FOUNDATION

Nuitka Python Compiler Release 4.1
NUITKA.NET

Call for Onsite Volunteers: Make EuroPython 2026 Happen
EUROPYTHON.EU

PEP 831: Frame Pointers Everywhere: Enabling System-Level Observability for Python (Final)
This PEP proposes two things:
PYTHON.ORG

PEP 808: Including Static Values in Dynamic Metadata (Accepted)
PYTHON.ORG


Articles & Tutorials


PyCon US 2026 Packaging Summit Recap
Per-talk notes from the PyCon US 2026 Packaging Summit, including: Emma Smith on Wheel 2.0 and Zstandard compression, Mike Fiedler on PyPI abuse vectors, Mahe Iram Khan on ecosystems, lightning talks on PEP 772, mobile wheels, AI accelerator variants, and the roundtable discussions.
BERNÁT GÁBOR

Slim Down Python Docker Containers
Learn how SlimToolkit can reduce a Python Docker image by analyzing what your app actually uses at runtime. This tutorial walks through slimming a Chainlit LLM chatbot image, shows where container bloat comes from, and explains how to avoid breaking lazily loaded Python frameworks.
CODECUT.AI • Shared by Khuyen Tran

Object-Oriented Python: 5-Day Live Workshop, June 8 to 12
A new live cohort for Python developers comfortable with the basics who want to design classes that hold up under change. Across five 2-hour sessions, OOP features appear at the moment a growing project actually needs them. You leave with a working app and the judgment to know when a class earns its keep →
REAL PYTHONsponsor

What Types of Exceptions Should You Catch?
The trickiest programming bugs are often caused by catching exceptions that you didn’t mean to catch or handling exceptions in ways that obfuscate the actual error that’s occurring. Which exceptions should you catch and which should you leave unhandled?
TREY HUNNER

Reverse Geocoding With Overture Maps
Mark is working on a reverse geocoder that can fetch the 2-letter ISO country code for any point on a map in a country’s boundaries. This post talks about the prototype and his progress on the project.
MARK LITWINTSCHIK

Stop Writing Edge Case Tests. Use Hypothesis Instead
An introduction to property-based testing in Python with Hypothesis: the mental shift from ‘what input should I test?’ to ‘what invariant should always hold?’
PEYTON GREEN • Shared by Anonymous

Opaque Types in Python
Learn how to use the NewType to mask a private class while still providing a public construction mechanism for the users of your library.
GLYPH LEFKOWITZ

How to Use the Claude API in Python
Learn how to use the Claude API in Python to send prompts, control responses with system instructions, and get structured JSON output.
REAL PYTHON

Quiz: How to Use the Claude API in Python
REAL PYTHON

uv Is Fantastic, but Its Package UX Is a Mess
This opinion piece talks about how uv’s CLI feels surprisingly clunky compared to its peers like pnpm or Poetry.
KEVIN RENSKERS

Python Built-in Functions: A Complete Guide
Use Python’s built-in functions for math, data types, iterables, and I/O to write shorter, more Pythonic code.
REAL PYTHON


Projects & Code


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

flake8-lazy: Detect Lazy-Importable Modules in Python 3.15+
GITHUB.COM/HENRYIII

django-arch-check: Static Checker for Common Django Issues
GITHUB.COM/RJ-GAMER

tdb: A Python Debugger Based on Textual
GITHUB.COM/ALDANIAL

postman2pytest: Convert Postman Collection Into pytest Suite
GITHUB.COM/GOLIKOVICHEV

agent-memory-guard: OWASP ASI06 AI Agent Memory Guard
GITHUB.COM/OWASP • Shared by Vaishnavi Gudur

📆🐍 Upcoming Python Events


PyCon Italia 2026
May 27 to May 31, 2026

Weekly Real Python Office Hours Q&A (Virtual)
May 27, 2026

PyLadies Amsterdam: Scalable Data Harvesting for AI
May 28, 2026

Python Leiden User Group
May 28, 2026

PyDelhi User Group Meetup
May 30, 2026

PyLadies El Alto: Flash Talks
May 30 to May 31, 2026
Happy Pythoning!
Copyright © 2026 PyCoder’s Weekly, All rights reserved.