Python 3.14.0 Beta 1 – Highlights of New Features and Changes
The article summarizes the major new features, build changes, deprecations, installer updates, and additional resources introduced in Python 3.14.0 beta 1, including delayed type‑annotation evaluation, template string literals, Zstandard compression support, and an experimental JIT compiler, while also noting release logistics and a fun π history note.
Python 3.14.0 Beta 1 – Highlights of New Features and Changes
On May 7 2025, the Python core team released the first beta of Python 3.14.0, bringing a host of new language features, standard‑library additions, and tooling improvements.
Main New Features
Python 3.14.0 beta 1 introduces several important enhancements:
1. Delayed Evaluation of Type Annotations (PEP 649)
Type annotations are now evaluated lazily, meaning they are not processed at import time but only when needed, improving start‑up performance and avoiding certain circular‑import issues.
2. Template String Literals (PEP 750)
A new "t‑string" literal syntax, similar to f‑strings, allows custom string processing, offering greater flexibility for developers.
3. Zstandard Compression Support (PEP 784)
A new compression.zstd module adds fast, efficient Zstandard compression directly to the standard library.
4. Simplified Exception Expressions (PEP 758)
The except and except* clauses can now omit surrounding parentheses, making exception handling code more concise.
5. REPL Syntax Highlighting and CLI Color Support
The interactive REPL now features syntax highlighting, and several CLI tools ( unittest , argparse , json , calendar ) support colored output for better readability.
6. Zero‑Cost External Debugger Interface (PEP 768)
A new zero‑overhead interface enables external debuggers to interact with CPython more efficiently.
7. UUID Versions 6‑8 Support
The uuid module now generates UUID versions 6‑8, with versions 3‑5 and 8 seeing a 40 % speed improvement.
8. Prohibited Control‑Flow Exit from finally (PEP 765)
Returning, breaking, or continuing from a finally block is now disallowed, reducing hard‑to‑track bugs.
9. Improved C‑API Configuration (PEP 741)
The C‑API now offers a more convenient configuration interface for extension developers.
10. New Interpreter Variant
An optional interpreter variant, optimized for newer compilers, can be built from source to achieve significant performance gains.
11. Enhanced Error Messages
Error messages have been refined to be clearer and more helpful during debugging.
12. Built‑in HMAC Implementation
A formally verified HMAC implementation from the HACL* project is now included in the standard library.
Build Changes
1. Signature Scheme Change (PEP 761)
Python 3.14 and later will no longer provide PGP signatures for distribution artifacts; users are encouraged to verify releases via Sigstore.
2. Experimental JIT Compiler
Official macOS and Windows binary releases now bundle an experimental Just‑In‑Time compiler, potentially accelerating Python program execution.
Incompatible Changes, Removals, and New Deprecations
Several previously compatible behaviours have been altered; see the release notes for details.
Various Python features and C‑API functions have been removed or marked deprecated.
A complete overview of pending deprecations is available in the documentation.
Python Installer
On Windows, the traditional installer is being replaced by a new installer that can be obtained from the Microsoft Store or an FTP page. A JSON manifest listing all installable packages, URLs, and hashes is provided for reference, though it is not required for installing the latest version. The legacy installer will continue to be available for Python 3.14 and 3.15.
More Resources
Official documentation: https://docs.python.org/3.14/
PEP 745 (release schedule): https://peps.python.org/pep-0745/
Report bugs at github.com/python/cpython/issues
Support the Python Software Foundation: https://www.python.org/psf/donations/
Notes
A test failure was observed that only occurs when tests are run sequentially after a certain number of other tests; this will be fixed in beta 2 (see python/cpython#133532).
Fun Fact: The History of π
The version number 3.14 mirrors the mathematical constant π (approximately 3.14). The Greek letter π was first used by Welsh mathematician William Jones in 1706 to denote the ratio of a circle’s circumference to its diameter. Jones also recognized that π is irrational, meaning it cannot be expressed as a fraction of two integers.
Conclusion
The next pre‑release after this article will be Python 3.14.0b2, scheduled for May 27 2025.
Source: Python Insider blog post “Python 3.14.0 beta 1 is here!”
Python Programming Learning Circle
A global community of Chinese Python developers offering technical articles, columns, original video tutorials, and problem sets. Topics include web full‑stack development, web scraping, data analysis, natural language processing, image processing, machine learning, automated testing, DevOps automation, and big data.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.