Skip to content

Commit 82b612d

Browse files
gh-151914: Copyedit "What's New in Python 3.16" (#159246)
1 parent 0486228 commit 82b612d

1 file changed

Lines changed: 40 additions & 37 deletions

File tree

‎Doc/whatsnew/3.16.rst‎

Lines changed: 40 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
What's new in Python 3.16
44
****************************
55

6-
:Editor: TBD
6+
:Editor: Savannah Ostrowski
77

88
.. Rules for maintenance:
99
@@ -56,16 +56,13 @@ For full details, see the :ref:`changelog <changelog>`.
5656
so it's worth checking back even after reading earlier versions.
5757

5858

59-
Summary --- release highlights
60-
==============================
59+
Summary -- Release highlights
60+
=============================
6161

6262
.. This section singles out the most important changes in Python 3.16.
6363
Brevity is key.
6464
6565
66-
.. PEP-sized items next.
67-
68-
6966
7067
New features
7168
============
@@ -121,6 +118,7 @@ asyncio
121118
socket file created for *path*.
122119
(Contributed by Sam Bull in :gh:`94984`.)
123120

121+
124122
bz2
125123
---
126124

@@ -129,6 +127,7 @@ bz2
129127
the version of the bzip2 compression library in use.
130128
(Contributed by Serhiy Storchaka in :gh:`117404`.)
131129

130+
132131
codecs
133132
------
134133

@@ -139,6 +138,7 @@ codecs
139138
even when a built-in codec of the same name exists.
140139
(Contributed by Serhiy Storchaka in :gh:`152997`.)
141140

141+
142142
compression.zstd
143143
----------------
144144

@@ -148,12 +148,13 @@ compression.zstd
148148
:const:`~compression.zstd.zstd_version_info` is now a named tuple.
149149
(Contributed by Serhiy Storchaka in :gh:`117404`.)
150150

151+
151152
concurrent.futures
152153
------------------
153154

154155
* The iterator returned by :meth:`concurrent.futures.Executor.map` is no longer
155156
automatically closed if a function call raises an exception.
156-
Use method :meth:`!close` to explicitly close the iterator.
157+
Use the :meth:`!close` method to explicitly close the iterator.
157158
(Contributed by xzmeng and Serhiy Storchaka in :gh:`108518`.)
158159

159160

@@ -332,16 +333,6 @@ curses
332333
(Contributed by Serhiy Storchaka in :gh:`133031`.)
333334

334335

335-
decimal
336-
-------
337-
338-
* Added constants :const:`~decimal.LIBMPDEC_VERSION`,
339-
:const:`~decimal.libmpdec_version`, :const:`~decimal.LIBMPDEC_VERSION_INFO`,
340-
and :const:`~decimal.libmpdec_version_info` in the C implementation,
341-
which provide information about the version of the libmpdec library in use.
342-
(Contributed by Serhiy Storchaka in :gh:`157475`.)
343-
344-
345336
dbm.gnu
346337
-------
347338

@@ -365,14 +356,23 @@ dbm.ndbm
365356
(Contributed by Serhiy Storchaka in :gh:`157480`.)
366357

367358

359+
decimal
360+
-------
361+
362+
* Added constants :const:`~decimal.LIBMPDEC_VERSION`,
363+
:const:`~decimal.libmpdec_version`, :const:`~decimal.LIBMPDEC_VERSION_INFO`,
364+
and :const:`~decimal.libmpdec_version_info` in the C implementation,
365+
which provide information about the version of the libmpdec library in use.
366+
(Contributed by Serhiy Storchaka in :gh:`157475`.)
367+
368+
368369
difflib
369370
-------
370371

371-
* Expose optional ``autojunk`` parameter from :class:`difflib.SequenceMatcher`
372-
to public functions and class methods in :mod:`difflib`,
373-
allowing to modify behavior of automatic junk heuristic in this module
374-
in higher public class methods and functions.
375-
(Contributed by Tomasz Kazimierczak in :gh:`118150`)
372+
* Expose the optional *autojunk* parameter of :class:`difflib.SequenceMatcher`
373+
in public functions and class methods in :mod:`difflib`, allowing callers
374+
to control the automatic junk heuristic.
375+
(Contributed by Tomasz Kazimierczak in :gh:`118150`.)
376376

377377

378378
encodings
@@ -543,16 +543,6 @@ pydoc
543543
(Contributed by Serhiy Storchaka in :gh:`153906`.)
544544

545545

546-
readline
547-
--------
548-
549-
* Added constants :const:`~readline.READLINE_VERSION_INFO`,
550-
:const:`~readline.readline_version_info` and
551-
:const:`~readline.readline_version`, which provide information about
552-
the version of the Readline library in use.
553-
(Contributed by Serhiy Storchaka in :gh:`157485`.)
554-
555-
556546
re
557547
--
558548

@@ -572,6 +562,16 @@ re
572562
(Contributed by Serhiy Storchaka in :gh:`95555`.)
573563

574564

565+
readline
566+
--------
567+
568+
* Added constants :const:`~readline.READLINE_VERSION_INFO`,
569+
:const:`~readline.readline_version_info` and
570+
:const:`~readline.readline_version`, which provide information about
571+
the version of the Readline library in use.
572+
(Contributed by Serhiy Storchaka in :gh:`157485`.)
573+
574+
575575
shlex
576576
-----
577577

@@ -593,7 +593,7 @@ sqlite3
593593
-------
594594

595595
* :class:`sqlite3.Blob` now supports negative-step slices for reading and
596-
writing (e.g. ``blob[9:0:-2]``). Previously, such slices would raise
596+
writing (for example, ``blob[9:0:-2]``). Previously, such slices would raise
597597
:exc:`SystemError` or :exc:`ValueError`.
598598
(Contributed by Jiseok CHOI in :gh:`150449`.)
599599

@@ -618,7 +618,7 @@ symtable
618618
--------
619619

620620
* :func:`symtable.symtable` now accepts an AST object,
621-
like the builtin :func:`compile`.
621+
like the built-in :func:`compile`.
622622
(Contributed by Serhiy Storchaka in :gh:`153844`.)
623623

624624
* Inlined list, set and dict comprehensions (:pep:`709`) are now represented
@@ -780,6 +780,7 @@ unicodedata
780780

781781
* The Unicode database has been updated to Unicode 18.0.0.
782782

783+
783784
xml
784785
---
785786

@@ -849,6 +850,7 @@ xml
849850
:const:`~xml.parsers.expat.version_info` is now a named tuple.
850851
(Contributed by Serhiy Storchaka in :gh:`157473`.)
851852

853+
852854
zipfile
853855
-------
854856

@@ -858,6 +860,7 @@ zipfile
858860
by the local file entries of removed members.
859861
(Contributed by Danny Lin in :gh:`51067`.)
860862

863+
861864
zlib
862865
----
863866

@@ -1118,9 +1121,9 @@ that may require changes to your code.
11181121
Build changes
11191122
=============
11201123

1121-
* Remove the bundled copy of the libmpdec_ decimal library from the CPython source tree
1122-
to simplify maintenance and updates. The :mod:`decimal` module will now
1123-
unconditionally use the system's libmpdec decimal library. Also remove the
1124+
* Remove the bundled copy of the libmpdec_ decimal library from the CPython
1125+
source tree to simplify maintenance and updates. The :mod:`decimal` module
1126+
will now unconditionally use the system's libmpdec decimal library. Also remove the
11241127
now unused :option:`!--with-system-libmpdec` :program:`configure` flag.
11251128
This change has no impact on binary releases of Python, which have been
11261129
built against a separate copy of libmpdec for the past several releases.

0 commit comments

Comments
 (0)