https://github.com/python/cpython/commit/82b612dfb2c5dde78acca6f8dee8ac69c5976090
commit: 82b612dfb2c5dde78acca6f8dee8ac69c5976090
branch: main
author: Savannah Ostrowski <[email protected]>
committer: savannahostrowski <[email protected]>
date: 2026-10-13T07:24:22-07:00
summary:
gh-151914: Copyedit "What's New in Python 3.16" (#159246)
files:
M Doc/whatsnew/3.16.rst
diff --git a/Doc/whatsnew/3.16.rst b/Doc/whatsnew/3.16.rst
index 94693500116f48..d9e12df91adefa 100644
--- a/Doc/whatsnew/3.16.rst
+++ b/Doc/whatsnew/3.16.rst
@@ -3,7 +3,7 @@
What's new in Python 3.16
****************************
-:Editor: TBD
+:Editor: Savannah Ostrowski
.. Rules for maintenance:
@@ -56,16 +56,13 @@ For full details, see the :ref:`changelog <changelog>`.
so it's worth checking back even after reading earlier versions.
-Summary --- release highlights
-==============================
+Summary -- Release highlights
+=============================
.. This section singles out the most important changes in Python 3.16.
Brevity is key.
-.. PEP-sized items next.
-
-
New features
============
@@ -121,6 +118,7 @@ asyncio
socket file created for *path*.
(Contributed by Sam Bull in :gh:`94984`.)
+
bz2
---
@@ -129,6 +127,7 @@ bz2
the version of the bzip2 compression library in use.
(Contributed by Serhiy Storchaka in :gh:`117404`.)
+
codecs
------
@@ -139,6 +138,7 @@ codecs
even when a built-in codec of the same name exists.
(Contributed by Serhiy Storchaka in :gh:`152997`.)
+
compression.zstd
----------------
@@ -148,12 +148,13 @@ compression.zstd
:const:`~compression.zstd.zstd_version_info` is now a named tuple.
(Contributed by Serhiy Storchaka in :gh:`117404`.)
+
concurrent.futures
------------------
* The iterator returned by :meth:`concurrent.futures.Executor.map` is no longer
automatically closed if a function call raises an exception.
- Use method :meth:`!close` to explicitly close the iterator.
+ Use the :meth:`!close` method to explicitly close the iterator.
(Contributed by xzmeng and Serhiy Storchaka in :gh:`108518`.)
@@ -332,16 +333,6 @@ curses
(Contributed by Serhiy Storchaka in :gh:`133031`.)
-decimal
--------
-
-* Added constants :const:`~decimal.LIBMPDEC_VERSION`,
- :const:`~decimal.libmpdec_version`, :const:`~decimal.LIBMPDEC_VERSION_INFO`,
- and :const:`~decimal.libmpdec_version_info` in the C implementation,
- which provide information about the version of the libmpdec library in use.
- (Contributed by Serhiy Storchaka in :gh:`157475`.)
-
-
dbm.gnu
-------
@@ -365,14 +356,23 @@ dbm.ndbm
(Contributed by Serhiy Storchaka in :gh:`157480`.)
+decimal
+-------
+
+* Added constants :const:`~decimal.LIBMPDEC_VERSION`,
+ :const:`~decimal.libmpdec_version`, :const:`~decimal.LIBMPDEC_VERSION_INFO`,
+ and :const:`~decimal.libmpdec_version_info` in the C implementation,
+ which provide information about the version of the libmpdec library in use.
+ (Contributed by Serhiy Storchaka in :gh:`157475`.)
+
+
difflib
-------
-* Expose optional ``autojunk`` parameter from :class:`difflib.SequenceMatcher`
- to public functions and class methods in :mod:`difflib`,
- allowing to modify behavior of automatic junk heuristic in this module
- in higher public class methods and functions.
- (Contributed by Tomasz Kazimierczak in :gh:`118150`)
+* Expose the optional *autojunk* parameter of :class:`difflib.SequenceMatcher`
+ in public functions and class methods in :mod:`difflib`, allowing callers
+ to control the automatic junk heuristic.
+ (Contributed by Tomasz Kazimierczak in :gh:`118150`.)
encodings
@@ -543,16 +543,6 @@ pydoc
(Contributed by Serhiy Storchaka in :gh:`153906`.)
-readline
---------
-
-* Added constants :const:`~readline.READLINE_VERSION_INFO`,
- :const:`~readline.readline_version_info` and
- :const:`~readline.readline_version`, which provide information about
- the version of the Readline library in use.
- (Contributed by Serhiy Storchaka in :gh:`157485`.)
-
-
re
--
@@ -572,6 +562,16 @@ re
(Contributed by Serhiy Storchaka in :gh:`95555`.)
+readline
+--------
+
+* Added constants :const:`~readline.READLINE_VERSION_INFO`,
+ :const:`~readline.readline_version_info` and
+ :const:`~readline.readline_version`, which provide information about
+ the version of the Readline library in use.
+ (Contributed by Serhiy Storchaka in :gh:`157485`.)
+
+
shlex
-----
@@ -593,7 +593,7 @@ sqlite3
-------
* :class:`sqlite3.Blob` now supports negative-step slices for reading and
- writing (e.g. ``blob[9:0:-2]``). Previously, such slices would raise
+ writing (for example, ``blob[9:0:-2]``). Previously, such slices would raise
:exc:`SystemError` or :exc:`ValueError`.
(Contributed by Jiseok CHOI in :gh:`150449`.)
@@ -618,7 +618,7 @@ symtable
--------
* :func:`symtable.symtable` now accepts an AST object,
- like the builtin :func:`compile`.
+ like the built-in :func:`compile`.
(Contributed by Serhiy Storchaka in :gh:`153844`.)
* Inlined list, set and dict comprehensions (:pep:`709`) are now represented
@@ -780,6 +780,7 @@ unicodedata
* The Unicode database has been updated to Unicode 18.0.0.
+
xml
---
@@ -849,6 +850,7 @@ xml
:const:`~xml.parsers.expat.version_info` is now a named tuple.
(Contributed by Serhiy Storchaka in :gh:`157473`.)
+
zipfile
-------
@@ -858,6 +860,7 @@ zipfile
by the local file entries of removed members.
(Contributed by Danny Lin in :gh:`51067`.)
+
zlib
----
@@ -1118,9 +1121,9 @@ that may require changes to your code.
Build changes
=============
-* Remove the bundled copy of the libmpdec_ decimal library from the CPython
source tree
- to simplify maintenance and updates. The :mod:`decimal` module will now
- unconditionally use the system's libmpdec decimal library. Also remove the
+* Remove the bundled copy of the libmpdec_ decimal library from the CPython
+ source tree to simplify maintenance and updates. The :mod:`decimal` module
+ will now unconditionally use the system's libmpdec decimal library. Also
remove the
now unused :option:`!--with-system-libmpdec` :program:`configure` flag.
This change has no impact on binary releases of Python, which have been
built against a separate copy of libmpdec for the past several releases.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]