This week, a new version of Python, a widespread high-level, general-purpose programming language, was released. Version 3.11 contains a lot of improvements. The release notes say that the CPython release team “put a lot of effort into making 3.11 the best version of Python possible.”
According to the data provided by Faster CPython Project, the new version is 10% to 60% faster compared to the previous release, 3.10. The average speed measured using the standard benchmark suite increased to 1.22 times.
In addition, the new release contains a few Python Enhancement Proposals (PEP), which were integrated to make coding easier. For example:
PEP 654 introduced a new syntax for except* clause and exception groups. This allows handling several exceptions at once.
PEP 657 adds more details in the traceback error reports. This addition should make the debugging process faster and easier.
PEP 673 introduces a Self type. It allows annotating the methods that return instances of the same class even more straightforwardly.
So, as you can see, the new update sped up Python and made it even more flexible. Considering how widespread it is, the update may trigger many changes and new abilities in numerous projects.