@@ -49,13 +49,14 @@ This article explains the new features in Python 3.11, compared to 3.10.
4949
5050For full details, see the :ref: `changelog <changelog >`.
5151
52+
5253Summary -- Release highlights
5354=============================
5455
5556.. This section singles out the most important changes in Python 3.11.
5657 Brevity is key.
5758
58- - Python 3.11 is up to 10-60% faster than Python 3.10. On average, we measured a
59+ - Python 3.11 is between 10-60% faster than Python 3.10. On average, we measured a
5960 1.25x speedup on the standard benchmark suite. See `Faster CPython `_ for details.
6061
6162.. PEP-sized items next.
@@ -65,18 +66,35 @@ New syntax features:
6566* :pep: `654 `: Exception Groups and ``except* ``.
6667 (Contributed by Irit Katriel in :issue: `45292 `.)
6768
69+ New built-in features:
70+
71+ * :pep: `678 `: Enriching Exceptions with Notes.
72+
73+ New standard library modules:
74+
75+ * :pep: `680 `: ``tomllib `` — Support for Parsing TOML in the Standard Library.
76+
77+ Interpreter improvements:
78+
79+ * :pep: `657 `: Include Fine Grained Error Locations in Tracebacks.
80+ * New :option: `-P ` command line option and :envvar: `PYTHONSAFEPATH ` environment
81+ variable to disable automatically prepending a potentially unsafe path
82+ (the working dir or script directory, depending on invocation)
83+ to :data: `sys.path `.
84+
6885New typing features:
6986
7087* :pep: `646 `: Variadic generics.
7188* :pep: `655 `: Marking individual TypedDict items as required or potentially missing.
7289* :pep: `673 `: ``Self `` type.
7390* :pep: `675 `: Arbitrary literal string type.
91+ * :pep: `681 `: Data Class Transforms.
7492
75- Security improvements :
93+ Important deprecations, removals or restrictions :
7694
77- * New :option: ` -P ` command line option and :envvar: ` PYTHONSAFEPATH ` environment
78- variable to not prepend a potentially unsafe path to :data: ` sys.path ` such as
79- the current directory, the script's directory or an empty string .
95+ * :pep: ` 594 `: Removing dead batteries from the standard library.
96+ * :pep: ` 624 `: Remove `` Py_UNICODE `` encoder APIs.
97+ * :pep: ` 670 `: Convert macros to functions in the Python C API .
8098
8199
82100New Features
0 commit comments