VOOZH about

URL: https://thenewstack.io/python-3-14-0-alpha-is-now-available-heres-whats-included/

⇱ Python 3.14.0 Alpha Is Now Available: Here's What's Included - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-10-31 05:00:50
Python 3.14.0 Alpha Is Now Available: Here's What's Included
Programming Languages / Python / Software Development

Python 3.14.0 Alpha Is Now Available: Here’s What’s Included

Python's latest alpha release brings deferred annotation evaluation and clearer error messages, with more features expected over six months of testing.
Oct 31st, 2024 5:00am by Jack Wallen
👁 Featued image for: Python 3.14.0 Alpha Is Now Available: Here’s What’s Included
Featured image via Unsplash+.
Python developers get excited because the first alpha of version 3.14.0 of the widely popular programming language has been made available. Keep in mind, that this is an early developer preview and is the first of seven planned alpha releases, which are intended to make the testing of the current state of new features and bug fixes possible. As with any alpha release, features can still be added all the way up to the start of the beta phase, which is set to begin on 05/06/2025. In other words, the alpha phase is over six months, so there’s plenty of time to kick the tires, see what’s new, and (more importantly) report any bugs you might find. As with any point release, you shouldn’t expect major changes to the language or deal-making (or breaking) features. That doesn’t mean you won’t find something new in the release. In fact (according to the official Python blog), new features are still being planned and written, so there’s no telling what the future of this release may hold. At the moment, there are two major new features that have been added to Python 3.14.0 alpha, which are:
  • Deferred evolution of annotations
  • Improved error messages
Let’s take a quick look at each.

Deferred Evaluation of Annotations

The deferred evaluation of annotations means the annotations of functions, classes, and modules will no longer be eagerly evaluated and will be stored in special-purpose annotate functions and evaluated only when necessary. Annotate functions are a subset of evaluate functions and can be called to retrieve the annotations of an object. This change was added to help improve the performance of annotations and make them more useful. According to PEP 649, “The new annotationlib module provides tools for inspecting deferred annotations. Annotations may be evaluated in the VALUE format (which evaluates annotations to runtime values, similar to the behavior in earlier Python versions), the FORWARDREF format (which replaces undefined names with special markers), and the STRING format (which returns annotations as strings).” The new annotationlib module is called with a line similar to:
from annotationlib import get_annotations, Format
For those who’ve not used annotations in Python, they not only increase the readability of your code but also hint about the data types of the variables, function parameters, and return type. There are two types of annotations in Python: function annotations and variable annotations. A function annotation looks something like this: The above snippet accepts two parameters – a and b and then denotes the return type as <expression>. You would then access the annotations using the __annotations__ attribute like so:

Improved Error Messages

The current improvement for error messages centers around unpacking assignments. If an unpacking assignment fails because of an incorrect number of variables, the improved error message now prints the number of values in more instances than in previous Python releases. Here’s an example: In the Python interpreter (which is accessed by typing python3), type:
x, y, z = 10, 20, 30, 40
In previous iterations of Python, the printed error would be: Traceback (most recent call last):   File “<python-input-0>”, line 1, in <module>     x, y, z = 10, 20, 30, 40     ^^^^^^^ ValueError: too many values to unpack (expected 3) In the 3.14.0 alpha, that error message would now read: Traceback (most recent call last):   File “<stdin>”, line 1, in <module>     x, y, z = 10, 20, 30, 40     ^^^^^^^ ValueError: too many values to unpack (expected 3, got 4) It gives you a little bit more information, which could go a long way to help you debug your code.

The Next Step

As with any alpha release, it’s important to communicate with the developers. If there’s a feature missing that you believe would be a worthwhile addition, you can reach out to the email address: hugo@python.org with your suggestions. The next alpha release, which is 3.14.0a2 is set to be released on Nov. 19, 2024. If you’re interested in testing Python alpha 3.14, you can install it from source (on Linux), or download one of the installers (macOS, Windows 64-bit, Windows 32-bit, or Windows ARM64). Remember, this is an experimental release, so it should not be considered for production use. You can check back with the official Python blog for more information on the various alpha releases.
TRENDING STORIES
Jack Wallen is what happens when a Gen Xer mind-melds with present-day snark. Jack is a seeker of truth and a writer of words with a quantum mechanical pencil and a disjointed beat of sound and soul. Although he resides...
Read more from Jack Wallen
SHARE THIS STORY
TRENDING STORIES
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.