What's New in Python 3.12 (Overview)
It’s that time of year again, time for a new release of Python. Although Python 3.12 mostly focuses on internal improvements, there’s a little something for everyone. You can read up on all the new features by checking out the changelog.
In this video course, you’ll learn about the following changes:
- Improvements to f-strings
- More did-you-mean error messages
- New features in the standard library
- Additions to static typing
- Changes to the CPython interpreter
In this video course, you’ll explore these changes and see how this new version of Python can work for you.
If you want to try any of the examples in this video course, then you’ll need to use Python 3.12. The Python 3 Installation & Setup Guide and How Can You Install a Pre-Release Version of Python? walk you through several options for adding a new version of Python to your system.
00:00 Welcome to What’s New in Python 3.12. My name is Christopher, and I’ll be your guide. In order to have this course released simultaneously with Python 3.12 testing in the course was done with release candidate 2. This shouldn’t affect anything described as release candidates are feature complete. For some time now, Python has been on a yearly release schedule, and 2023’s release is Python 3.12. Like with every release, a bunch of improvements have been made.
00:32 3.12’s focus has mostly been internal, but there’s a little bit for everyone. You’ll find some changes to f-strings, even more improvements to error messages, a few new features in the standard library (some functions and some enums), additions to the static typing framework, and as I mentioned, a whole bunch going on internally, some of which improves the performance and some of which is laying the groundwork for future improvements.
00:59 So, let’s waste no more time, and dive into the first new feature, a change to how f-strings are parsed.
Become a Member to join the conversation.