What's New in Python 3.13 (Summary)
A new Python release is always great news! You’ve been on a tour of the features and improvements that have been updated in Python 3.13. Send some appreciation to all the volunteers that put time and effort into the development!
In this video course, you’ve seen new features and improvements, like:
- Improvements made to the interactive interpreter (REPL)
- Clearer error messages that can help you fix common mistakes
- Advancements done in removing the global interpreter lock (GIL) and making Python free-threaded
- The implementation of an experimental JIT-compiler
- A host of minor upgrades to Python’s static type system
You probably won’t be able to take advantage of the new features right away, but you should install Python 3.13 on your system and play with it.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.
00:00 In the previous lesson, I briefly covered some odds and ends not specifically covered in the rest of the course. This is the summary lesson and includes references for your further exploration of Python 3.13.
00:12 Python releases are now yearly and the improvements continue to come right along. The first improvement I showed you in 3.13 is a friendlier REPL. It now allows block edits and paste mode.
00:25 Like I said, probably my favorite feature.
00:28
I also mentioned the two new experimental features. One, to remove the GIL and the other to add a JIT. There are improvements to the error messages and several improvements to typing, including deprecation decorator, template typing defaults, the ReadOnly
attribute for TypeDict
, and the TypeIs
guard.
00:51
The random
module can now be called from the command line in case you wish to use random values outside of Python.
00:58
Indented docstrings now get indented for you automatically, you can now copy and edit an object in one call using the replace()
function from the copy
module, the pathlib
module has a new feature to compare paths using the *
and **
wildcards, and the glob()
and rglob()
methods in pathlib
have been updated to be more consistent with everyone else in the world.
01:23 And if you want to do Python in the Apple world, iOS is now a supported platform. For a complete list of everything new in Python 3.13, the docs have a “What’s New” section. To dig into the free threading and JIT compiler experimental features.
01:41 This tutorial covers how to get them and how to play with them. And finally, for more information on the REPL, this tutorial covers the new changes.
Become a Member to join the conversation.