
A number of other old, broken and deprecated functions, classes and methods have been removed.The setuptools package continues to provide the distutils module. The deprecated smtpd and distutils modules have been removed (see PEP 594 and PEP 632.(They had been deprecated since Python 3.1 or 3.2). In the unittest module, a number of long deprecated methods and classes were removed.The deprecated wstr and wstr_length members of the C implementation of unicode objects were removed, per PEP 623.New override decorator for methods ( PEP 698).New type annotation syntax for generic classes ( PEP 695).Many large and small performance improvements (like PEP 709 and support for the BOLT binary optimizer), delivering an estimated 5% overall performance improvement.Support for the Linux perf profiler to report Python function names in traces.More exceptions potentially caused by typos now make suggestions to the user. Support for isolated subinterpreters with separate Global Interpreter Locks ( PEP 684).A new debugging/profiling API ( PEP 669).Support for the buffer protocol in Python code ( PEP 688).

More flexible f-string parsing, allowing many things previously disallowed ( PEP 701).Major new features of the 3.12 series, compared to 3.11 New features Python 3.12.0 is the newest major release of the Python programming language, and it contains many new features and optimizations. 2, 2023 This is the stable release of Python 3.12.0
