Python 3.11 stable version has been officially released !
Some of the new major new features and changes in Python 3.11 include:
general changes
- PEP 657 - Introduce fine-grained Error Locations in error message reporting
- PEP 654 – Exception Groups and except*
- PEP 680 - tomllib: support parsing TOML in the standard library
- bpo-46752 - Bring task groups to asyncio
- bpo-433030 – Regular expressions now support atomic grouping: ((?>...)), and possessive quantifiers (
*+, ++, ?+, {m,n}+
) - The Faster Cpython Project has shown some exciting results: Python 3.11 is 10%~60% faster than Python 3.10. For details, please refer to the previously reported article " The father of Python reports progress: CPython 3.11 is 25% faster than 3.10 "
Typing changes
- PEP 673 - Self Types
- PEP 655 - Mark individual TypedDict items as required or possibly missing
- PEP 675 - Arbitrary Literal String Types
- PEP 681 - Data Class Conversion
- PEP 646 - Variadic Generics
Other links:
- online documentation
- PEP 664 : 3.11 Release Schedule
- Report bugs: https://github.com/python/cpython/issues
More details can be found here: https://www.python.org/downloads/release/python-3110/