Python 3.11 is out now. Here's how to install in Ubuntu
Python 3.11 was released on Oct 25, 2022, and claims to be 10-60% faster than the prior Python 3.10 version.
As always, the feature and improvement list are significantly high in 3.11. Here's a brief.
- Error tracebacks are not more definite, which gives you an exact statement that causes the error.
- Introduction of exception groups and new except* syntax
- You can add custom text in the base expression for better error handling in your code.
- Introduction of Variadic generic to allow array-like structure in numerical Python libraries )such as NumPy)
- Dictionary type TypedDict gets improvement where you can now specify whether individual dictionary items are mandatory or optional.
- Introduction of Self annotation, which allows classes to return their own type instance.
And finally, here's how you can install this latest version in Ubuntu.