Skip to content

Commit 12abd7d

Browse files
committed
Move collections.abc removal and deprecations from 'Improved modules' to 'Removed' and 'New deprecations'
1 parent 8e5a186 commit 12abd7d

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -690,26 +690,6 @@ collections
690690
(Contributed by Raymond Hettinger in :gh:`138682`.)
691691

692692

693-
collections.abc
694-
---------------
695-
696-
* :class:`collections.abc.ByteString` has been removed from
697-
``collections.abc.__all__``. :class:`!collections.abc.ByteString` has been
698-
deprecated since Python 3.12, and is scheduled for removal in Python 3.17.
699-
700-
* The following statements now cause ``DeprecationWarning``\ s to be emitted at
701-
runtime:
702-
703-
* ``from collections.abc import ByteString``
704-
* ``import collections.abc; collections.abc.ByteString``.
705-
706-
``DeprecationWarning``\ s were already emitted if
707-
:class:`collections.abc.ByteString` was subclassed or used as the second
708-
argument to :func:`isinstance` or :func:`issubclass`, but warnings were not
709-
previously emitted if it was merely imported or accessed from the
710-
:mod:`!collections.abc` module.
711-
712-
713693
concurrent.futures
714694
------------------
715695

@@ -1390,6 +1370,14 @@ Diego Russo in :gh:`140683` and :gh:`142305`.)
13901370
Removed
13911371
========
13921372

1373+
collections.abc
1374+
---------------
1375+
1376+
* :class:`collections.abc.ByteString` has been removed from
1377+
``collections.abc.__all__``. :class:`!collections.abc.ByteString` has been
1378+
deprecated since Python 3.12, and is scheduled for removal in Python 3.17.
1379+
1380+
13931381
ctypes
13941382
------
13951383

@@ -1584,6 +1572,21 @@ New deprecations
15841572

15851573
(Contributed by Nikita Sobolev in :gh:`136355`.)
15861574

1575+
* :mod:`collections.abc`
1576+
1577+
* The following statements now cause ``DeprecationWarning``\ s to be emitted
1578+
at runtime:
1579+
1580+
* ``from collections.abc import ByteString``
1581+
* ``import collections.abc; collections.abc.ByteString``.
1582+
1583+
``DeprecationWarning``\ s were already emitted if
1584+
:class:`collections.abc.ByteString` was subclassed or used as the second
1585+
argument to :func:`isinstance` or :func:`issubclass`, but warnings were not
1586+
previously emitted if it was merely imported or accessed from the
1587+
:mod:`!collections.abc` module.
1588+
1589+
15871590
* :mod:`hashlib`:
15881591

15891592
* In hash function constructors such as :func:`~hashlib.new` or the

0 commit comments

Comments
 (0)