Two lines of Python that segfault the interpreter
Two lines of Python could crash CPython 3.14 through 3.16 because SET_ADD assumed it was always operating on a real set, while PEP 749 made__conditional_annotations__rebindable from Python code. The post explains how that
News & links about Python programming.
Support: patreon.com/pythonhub
Suggest a Link: pythonhub.dev/submit/
Joined May 2012
- Django EMAIL_BACKEND Is Deprecated — Here’s How to Fix It (Django 6.1 MAILERS Guide) Django 6.1 deprecates EMAIL_BACKEND and related email settings in favor of the new MAILERS configuration, ahead of their removal in Django 7.0. The article shows how to migrate existing email
- interlock Circuit breaker for Python: sync + async in one class, sliding-window rate, slow-call detection, Polly-style resilience pipeline, type-safe API.
- From Routing Checks to Trajectory Testing: Evaluating an Agentic Chatbot Traditional chatbot testing that checks only final responses misses many agent failures, so this article builds an evaluation framework that progresses from routing checks and task completion to full
- A quick look at zero-knowledge proofs In this post, the authors break down non-cryptocurrency zero-knowledge proofs (ZKPs) using graph theory and Python. By implementing Protocol 4 from Goldreich, Micali, and Wigderson, they show how a prover uses randomized color permutations,

