Text of docs.python.org › 3.16 › contents.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

Python Documentation contents — Python 3.16.0a2 documentation

Navigation index modules | next | Python » 3.16.0a2 documentation » Python Documentation contents | Theme | Python Documentation contents ¶ What’s New in Python What’s new in Python 3.16 Summary – Release highlights New features Improved error messages Other language changes Default interactive shell New modules Improved modules argparse asyncio bdb bz2 codecs compression.zstd concurrent.futures concurrent.interpreters copy csv ctypes curses datetime dbm.gnu dbm.ndbm decimal difflib encodings gzip http http.client imaplib io ipaddress logging lzma math multiprocessing os pydoc pickle quopri re readline shlex shutil socket sqlite3 ssl symtable tkinter turtle unicodedata urllib.request uuid xml zipfile zlib Optimizations ast datetime and time re uuid Removed annotationlib array asyncio functools logging mimetypes shutil symtable sys sysconfig tarfile xml.etree.ElementTree Deprecated New deprecations Pending removal in Python 3.17 Pending removal in Python 3.18 Pending removal in Python 3.19 Pending removal in Python 3.20 Pending removal in Python 3.21 Pending removal in future versions Porting to Python 3.16 Build changes Build support for tvOS, watchOS, and visionOS C API changes New features Porting to Python 3.16 Deprecated C APIs Pending removal in Python 3.18 Pending removal in Python 3.19 Pending removal in Python 3.20 Pending removal in future versions Removed C APIs What’s new in Python 3.15 Summary – Release highlights New features PEP 810 : Explicit lazy imports PEP 814 : Add frozendict built-in type PEP 661 : Add sentinel built-in type PEP 799 : A dedicated profiling package Tachyon: High-frequency statistical sampling profiler PEP 831 : Frame pointers enabled by default PEP 798 : Unpacking in comprehensions PEP 829 : Package startup configuration files PEP 803 : Stable ABI for free-threaded builds PEP 788 : Protecting the C API from interpreter finalization Improved error messages Other language changes Default interactive shell New modules math.integer Improved modules argparse array ast asyncio base64 binascii calendar collections concurrent.futures contextlib ctypes dataclasses dbm difflib email faulthandler functools gc hashlib http.client http.server importlib.metadata inspect json locale math mimetypes mmap os os.path pathlib pdb pickle pickletools pprint re resource shelve shutil socket sqlite3 ssl subprocess symtable sys sys.monitoring tarfile threading timeit tkinter tokenize tomllib types typing unicodedata unittest urllib.parse venv warnings wave webbrowser xml xml.parsers.expat zlib Optimizations base64 & binascii csv Upgraded experimental JIT compiler Removed ast collections.abc ctypes datetime glob http.server importlib importlib.resources pathlib platform sre_* sysconfig threading types typing wave zipimport Deprecated New deprecations Pending removal in Python 3.16 Pending removal in Python 3.17 Pending removal in Python 3.18 Pending removal in Python 3.19 Pending removal in Python 3.20 Pending removal in Python 3.21 Pending removal in future versions Soft deprecations C API changes New features Changed C APIs Removed C APIs Deprecated C APIs Build changes Porting to Python 3.15 What’s new in Python 3.14 Summary – Release highlights New features PEP 649 & PEP 749 : Deferred evaluation of annotations PEP 734 : Multiple interpreters in the standard library PEP 750 : Template string literals PEP 768 : Safe external debugger interface A new type of interpreter Free-threaded mode improvements Improved error messages PEP 784 : Zstandard support in the standard library Asyncio introspection capabilities Concurrent safe warnings control Other language changes Built-ins Command line and environment PEP 758: Allow except and except* expressions without brackets PEP 765: Control flow in finally blocks Garbage collection Default interactive shell New modules Improved modules argparse ast asyncio calendar concurrent.futures configparser contextvars ctypes curses datetime decimal difflib dis errno faulthandler fnmatch fractions functools getopt getpass graphlib heapq hmac http imaplib inspect io json linecache logging.handlers math mimetypes multiprocessing operator os os.path pathlib pdb pickle platform pydoc re socket ssl struct symtable sys sys.monitoring sysconfig tarfile threading tkinter turtle types typing unicodedata unittest urllib uuid webbrowser zipfile Optimizations asyncio base64 bdb difflib gc io pathlib pdb textwrap uuid zlib Removed argparse ast asyncio email importlib.abc itertools pathlib pkgutil pty sqlite3 urllib Deprecated New deprecations Pending removal in Python 3.15 Pending removal in Python 3.16 Pending removal in Python 3.17 Pending removal in Python 3.18 Pending removal in Python 3.19 Pending removal in Python 3.20 Pending removal in Python 3.21 Pending removal in future versions CPython bytecode changes Pseudo-instructions C API changes Python configuration C API New features in the C API Limited C API changes Removed C APIs Deprecated C APIs Pending removal in Python 3.15 Pending removal in Python 3.16 Pending removal in Python 3.18 Pending removal in future versions Build changes build-details.json Discontinuation of PGP signatures Free-threaded Python is officially supported Binary releases for the experimental just-in-time compiler Porting to Python 3.14 Changes in the Python API Changes in annotations ( PEP 649 and PEP 749 ) Implications for annotated code Implications for readers of __annotations__ Related changes from __future__ import annotations Changes in the C API Notable changes in 3.14.5 gc What’s New In Python 3.13 Summary – Release Highlights New Features A better interactive interpreter Improved error messages Free-threaded CPython An experimental just-in-time (JIT) compiler Defined mutation semantics for locals() Support for mobile platforms Other Language Changes New Modules Improved Modules argparse array ast asyncio base64 compileall concurrent.futures configparser copy ctypes dbm dis doctest email enum fractions glob importlib io ipaddress itertools marshal math mimetypes mmap multiprocessing os os.path pathlib pdb queue random re shutil site sqlite3 ssl statistics subprocess sys tempfile time tkinter traceback types typing unicodedata venv warnings xml zipimport Optimizations Removed Modules And APIs PEP 594: Remove “dead batteries” from the standard library 2to3 builtins configparser importlib.metadata locale opcode optparse pathlib re tkinter.tix turtle typing unittest urllib webbrowser New Deprecations Pending removal in Python 3.14 Pending removal in Python 3.15 Pending removal in Python 3.16 Pending removal in Python 3.17 Pending removal in Python 3.18 Pending removal in Python 3.19 Pending removal in Python 3.20 Pending removal in Python 3.21 Pending removal in future versions CPython Bytecode Changes C API Changes New Features Changed C APIs Limited C API Changes Removed C APIs Deprecated C APIs Pending removal in Python 3.14 Pending removal in Python 3.15 Pending removal in Python 3.16 Pending removal in Python 3.18 Pending removal in future versions Build Changes Porting to Python 3.13 Changes in the Python API Changes in the C API Regression Test Changes What’s New In Python 3.12 Summary – Release highlights New Features PEP 695: Type Parameter Syntax PEP 701: Syntactic formalization of f-strings PEP 684: A Per-Interpreter GIL PEP 669: Low impact monitoring for CPython PEP 688: Making the buffer protocol accessible in Python PEP 709: Comprehension inlining Improved Error Messages New Features Related to Type Hints PEP 692: Using TypedDict for more precise **kwargs typing PEP 698: Override Decorator for Static Typing Other Language Changes New Modules Improved Modules array asyncio calendar csv dis fractions importlib.resources inspect itertools math os os.path pathlib platform pdb random shutil sqlite3 statistics sys tempfile threading tkinter tokenize types typing unicodedata unittest uuid Optimizations CPython bytecode changes Demos and Tools Dep

The rest of this page is on the live site.