Python 3.14 Alpha, UV Dependency Groups, and Docker Dive

·28m 26s
Shared point

The Future of Python: 3.14 Alpha 1

In this episode, we dive into the initial release of Python 3.14 Alpha 1. While it is an early preview, it introduces several exciting features and performance enhancements:

Performance Optimizations: Asyncio now utilizes a doubly linked list implementation, resulting in a 10% performance boost and reduced memory consumption.
Deferred Annotation Evaluation: A key change addressing typing concerns, allowing for cleaner code and better handling of forward references.
New Capabilities: The release introduces Pathlib methods for recursive file/directory operations, better detection of incorrect await usage, and convenient utility methods like float.from_number.
Developer UX: A new http.server dark mode was added for web-view convenience.

Dependency Management Trends

We discussed the rapid integration of PEP 735 into the UV package manager.

UV now supports Dependency Groups within pyproject.toml.
• While the install interface is still being standardized, users can currently leverage uv sync --group <name> to manage specific sets of dependencies, such as development tools or large Machine Learning libraries, without pulling in unnecessary bloat.

Tools for Devops and Testing

Docker Dive: A powerful tool for analyzing Docker images by layer. It allows developers to explore file tree deltas, identify wasted space, and ensure no unwanted tools or security vulnerabilities are included in production images.
PyTest Metadata: We revisited the importance of this plugin for attaching key-value pairs (environment info, system specs) to test results, making it an essential tool for CI/CD reporting.

"That rings a bell, but I'm not sure whether we have it here or not."

  • Library joke regarding Pavlov's dog and Schrodinger's cat.

Topics

Chapters

5 chapters
Python Bytes
AI chat — answers grounded in episodes