Issue #690: JIT, __init__, dis, and That’s Not It (July 15, 2025)

#690 – JULY 15, 2025

Reflections on 2 Years of CPython’s JIT Compiler

Ken is one of the contributors to CPython’s JIT compiler. This retrospective talks about what is going well and what Ken thinks could be better with the JIT.
KEN JIN

What Is Python’s __init__.py For?

Learn to declare packages with Python’s __init__.py, set package variables, simplify imports, and understand what happens if this module is missing.
REAL PYTHON

Quiz: What Is Python’s __init__.py For?

REAL PYTHON

[Live Event] Debugging AI Applications with Sentry

Join the Sentry team for the latest Sentry Build workshop on Debugging with Sentry AI using Seer, MCP, and Agent Monitoring. In this hands-on session, you’ll learn how to debug AI-integrated applications and agents with full-stack visibility. Join live on July 23rd →
SENTRY sponsor

Disassembling Python Code Using the dis Module

Look behind the scenes to see what happens when you run your Python (CPython) code by using the tools in the dis module.
THEPYTHONCODINGSTACK.COM

PyData London 2025 Videos

YOUTUBE.COM

Python 3.14.0b4 Released

PYTHON.ORG

PEP 734: Multiple Interpreters in the Stdlib (Final)

PYTHON.ORG

PEP 792: Project Status Markers in the Simple Index (Accepted)

PYTHON.ORG

Articles & Tutorials

Run Coverage on Tests

Code coverage tools tell you just what parts of your programs got executed during test runs. They’re an important part of your test suite, without them you may miss errors in your tests themselves. This post has two quick examples of just why you should use a coverage tool.
HUGO VAN KEMENADE

Python Software Foundation Bylaws Change

To comply with a variety of data privacy laws in the EU, UK, and California, the PSF is updating section 3.8 of the bylaws which formerly allowed any voting member to request a list of all members’ names and email addresses.
PYTHON SOFTWARE FOUNDATION

Happy 20th Birthday Django!

July 13th was the 20th anniversary of the first public commit to the Django code repository. In celebration, Simon has reposted his talk from the 10th anniversary on the history of the project.
SIMON WILLISON

330× Faster: Four Different Ways to Speed Up Your Code

There are many approaches to speeding up Python code; applying multiple approaches can make your code even faster. This post talks about four different ways you can achieve speed-up.
ITAMAR TURNER-TRAURING

Thinking About Running for the PSF Board? Let’s Talk!

It is that time of year, the PSF board elections are starting. If you’re thinking about running or want to know more, consider attending the office hours session on August 12th.
PYTHON SOFTWARE FOUNDATION

How Global Variables Work in Python Bytecode

To better understand how Python handles globals, this article walks through dynamic name resolution, the global store, and how monkey patching works at the bytecode level.
FROMSCRATCHCODE.COM • Shared by Tyler Green

Building a JIT Compiler for CPython

Talk Python To Me interviews Brandt Bucher and they talk about the upcoming JIT compiler for Python and how it is different than JITs in other languages.
KENNEDY & BUCHER podcast

International Travel to DjangoCon US 2025

DjangoCon US is in Chicago on September 8-12. If you’re travelling there from outside the US, this article has details that may be helpful to you.
DJANGOCON US

Using DuckDB With Pandas, Parquet, and SQL

Learn about DuckDB’s in-process architecture and SQL capabilities which can enhance performance and simplify data handling.
KHUYEN TRAN • Shared by Ben Portz

Exploring Protocols in Python

Learn how Python’s protocols improve your use of type hints and static type checkers in this practical video course.
REAL PYTHON course

How to Use MongoDB in Python Flask

This article explores the benefits of MongoDB and how to use it in a Flask application.
FEDERICO TROTTA • Shared by AppSignal

Open Source Security Work Isn’t “Special”

Seth gave a keynote talk at the OpenSSF Community Day NA and spoke about how in many open source projects security is thought of in isolation and it can be overwhelming to maintainers. This post from Seth is a summary of the talk and proposes changes to how we approach the security problem in open source.
SETH LARSON

Projects & Code

tika-python: Binding for Apache Tika REST Services

GITHUB.COM/CHRISMATTMANN

pytest-xdist: pytest Plugin for Distributed Testing

GITHUB.COM/PYTEST-DEV

pydoll: Automate Chromium-Based Browsers

GITHUB.COM/AUTOSCRAPE-LABS

django-rq-cron: A Cron Runner Built Atop rq

GITHUB.COM/BUTTONDOWN

PCL: Combine Python and C in One File

GITHUB.COM/HEJHDISS • Shared by Muhammed Shafin P

Events

Weekly Real Python Office Hours Q&A (Virtual)

July 16, 2025
REALPYTHON.COM

PyData Bristol Meetup

July 17, 2025
MEETUP.COM

PyLadies Dublin

July 17, 2025
PYLADIES.COM

Chattanooga Python User Group

July 18 to July 19, 2025
MEETUP.COM

IndyPy X IndyAWS: Python-Powered Cloud

July 22 to July 23, 2025
MEETUP.COM

PyOhio 2025

July 26 to July 28, 2025
PYOHIO.ORG

Happy Pythoning!
This was PyCoder’s Weekly Issue #690.
View in Browser »

[ Subscribe to 🐍 PyCoder’s Weekly 💌 – Get the best Python news, articles, and tutorials delivered to your inbox once a week >> Click here to learn more ]

Source:: PyCoder’s