Python 3.12 was published on October 2, 2023. As usual, the new version comes out in October after lots of effort by volunteers worldwide.

The new version comes with several new features and improvements that you'll explore in this tutorial. You can also dive into the documentation to see a complete list of all changes.

In this tutorial, you'll learn about new features and improvements, like:

Better error messages with helpful suggestions and guidance More expressive f-strings that are backed by Python's PEG parser Optimizations, including inlined comprehensions, for a faster Python A new syntax for type variables that you use to annotate generics Support for the powerful perf profiler on Linux

continue reading on realpython.com

⚠️ This post links to an external website. ⚠️