Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 40 additions & 37 deletions Doc/whatsnew/3.16.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
What's new in Python 3.16
****************************

:Editor: TBD
:Editor: Savannah Ostrowski

.. Rules for maintenance:

Expand Down Expand Up @@ -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
============
Expand Down Expand Up @@ -121,6 +118,7 @@ asyncio
socket file created for *path*.
(Contributed by Sam Bull in :gh:`94984`.)


bz2
---

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


codecs
------

Expand All @@ -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
----------------

Expand All @@ -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`.)


Expand Down Expand Up @@ -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
-------

Expand All @@ -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
Expand Down Expand Up @@ -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
--

Expand All @@ -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
-----

Expand All @@ -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`.)

Expand All @@ -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
Expand Down Expand Up @@ -780,6 +780,7 @@ unicodedata

* The Unicode database has been updated to Unicode 18.0.0.


xml
---

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


zipfile
-------

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


zlib
----

Expand Down Expand Up @@ -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.
Expand Down
Loading