Python Language Summit 2025, Cognitive Complexity, and Tools

·34m 28s
Shared point

Python Language Summit 2025 Highlights

This episode dives into the official write-up from the Python Language Summit 2025, covering the core focus areas for the language's future. Several key topics were discussed during the summit:

Breaking Changes: Strategies for minimizing developer pain during major Python version transitions.
AsyncIO & Concurrency: Updates on free-threaded Python and managing runtime contention.
Python on Mobile: The successful completion of PEPs 730 and 738, making CPython a tier-three supported platform for iOS and Android.
The Role of Rust: Estimates suggest one-third of new native code on PyPI is now written in Rust.

Advanced Python Development Tools

Fixing Python Properties

The hosts discuss the complexities of using Python properties with modern type checkers. Key takeaways include:
• Properties often cause type mismatch errors when getter and setter types diverge.
• Using a descriptor class is presented as a robust alternative to property decorators without sacrificing type safety.
• A challenge is raised regarding the inconsistency between MyPy, PyRight, and PyLance validations, which can lead to exhaustive type-juggling.

"What is the clumsiest, most non-intuitive, less than ideal, less readable or just bad part of Python, the language? Properties."

Cognitive Complexity

Introduction to Complexify, a new tool written in Rust for measuring the cognitive complexity of Python projects. Unlike traditional cyclomatic complexity tools, cognitive complexity focuses on maintainability and readability, identifying "hot spots" in code that may require refactoring or additional unit tests.

Ecosystem Updates

Juvio: A new project that integrates Jupyter Notebooks with UV, allowing for automatic, dependency-aware, and ephemeral virtual environment management.
Sponsorship: The episode features Posit Connect as a platform for hosting and managing data science assets, including Streamlit, Dash, and FastAPI dashboards.
Humor: The hosts discuss the viral "0.1x Engineer" video and the imaginative use of AI for short-form narrative content.

Topics

Chapters

6 chapters
Python Bytes
AI chat — answers grounded in episodes