Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

What's New in Python 3.14 (Summary)

Every new Python release is a chance to reflect on how far the language has come and to thank the countless contributors who keep pushing it forward. With Python 3.14, you get a release that balances polish with progress, smoothing rough edges while also planting seeds for the future.

In this video course, you’ve seen highlights like:

  • A more colorful REPL with syntax highlighting and smarter imports
  • Friendlier error messages that guide you toward fixes
  • A standardized, safe way to connect external debuggers
  • Template strings (t-strings) for safer string interpolation
  • Deferred evaluation of annotations that removes long-standing typing pain points
  • Subinterpreters, a free-threaded build, and incremental garbage collection

If you’re eager to dive deeper, then check out the dedicated tutorials and previews that zoom in on individual features:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 In the previous lesson, I covered some of the smaller new additions to Python 3.14. In this lesson, I’ll summarize the course and point you at other places where you can dig in further.

00:11 Python 3.14 is the annual release of Python for 2025. It has a lot of emphasis on internals. One of the bigger changes is the free-threaded feature has gone from being experimental to being included in the build.

00:25 The long-existing subinterpreters feature that used to only be available to extensions has now been exposed to the language itself. Work on the Just-In-Time compiler continues.

00:36 It has gone from being experimental to being included in the macOS and Windows builds. The hooks for the debugger have been improved and now can be called on running processes.

00:47 This will allow new tools that can connect to long-running processes. Python 3.14 added a few language features. T-strings are an f-string-like thing that returns a template object instead of a string, allowing you to make modifications to the contents, essentially accessing the Python parser for f-strings, intercepting the result of the f-string first to save you a little bit of typing.

01:11 If you are catching multiple exceptions, you no longer need parentheses if you aren’t using the as keyword. Annotations and type hints used to be eager by default.

01:21 They now are lazy. This means less processing upfront, and moving most of the processing of the annotation to its use.

01:30 There are new methods and functions added to the pathlib, unittest, and uuid modules. The Zstandard compression library has been added, and there have been lots and lots of pretty colors.

01:43 Syntax highlighting has been added to the REPL, and many of the Python modules that act as command-line tools also have color highlighting in them as well.

01:52 Believe it or not, what I’ve shown you isn’t exhaustive. For a full list of what’s in Python 3.14, go to the documentation. Or, if you want even finer-grain detail than that, you can look at the change log.

02:05 This URL is the changelog for release candidate two. Whatever version you’re using, just change the mid-bar to the URL there to map it, and in case you’re curious, here’s that little Python Easter egg in the code commit.

02:19 You can see it for yourself.

02:22 Frequent Real Python contributor Rodrigo Girão Serrão, has a blog post going into even more detail on placeholders and how to use them with functools.

02:35 This course and tutorial pre-dates Python 3.14, but there’s lots of features in the REPL that you might not be aware of, so it’s worth taking a look. Block editing, paste, and history mechanisms got added to the REPL as part of a bunch of changes in Python 3.13.

02:50 If you want to see those new features, check out this tutorial. When discussing improvements to the error messages, I mentioned the idea of expressions and statements in Python.

03:00 If you’d like to learn more about that, go read this very in-depth tutorial.

03:05 And for everything you need to know about annotations and their new lazy evaluation, this very long tutorial covers it all. If you’re new to complex numbers in Python, this tutorial is a good introduction.

03:19 Or, if you want to dig into functools a little bit more, this is a lesson inside of a full course. The course is about practicing for coding interviews, but the lesson concentrates on functools themselves.

03:32 There’s both a course and tutorial on the new t-string concepts with lots of details of how they can be used in the real world.

03:40 If you’d like to learn a little more about the GIL, there’s a few places you can look. This course generally covers the topic, and this tutorial from 3.13 covers how the GIL started to get removed through free-threading, as well as the JIT compiler pieces that got added experimentally in Python 3.13.

04:00 To better understand how the GIL impacts threading or just how to do threading and multiprocessing generally, the Speed Up Python With Concurrency course and tutorials will cover a lot of how to do multiprocessing in your favorite language.

04:14 Work on the subinterpreters has been happening over the last three releases. Although this article is from two years ago, it does cover the PEPs that got fully implemented in 3.14.

04:26 To learn more about the pathlib module, this course and tutorial are worth checking out.

04:33 That’s all I’ve got for you. I hope you enjoy the new release. Thanks for your attention.

Become a Member to join the conversation.