Skip to content

Commit bab8918

Browse files
authored
gh-109975: Add list of 3.13 removed library replacements (#127816)
Add list of 3.13 removed library replacements
1 parent fc3d400 commit bab8918

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

Diff for: Doc/whatsnew/3.13.rst

+52
Original file line numberDiff line numberDiff line change
@@ -1499,8 +1499,20 @@ All of the following modules were deprecated in Python 3.11,
14991499
and are now removed:
15001500

15011501
* :mod:`!aifc`
1502+
1503+
* :pypi:`standard-aifc`:
1504+
Use the redistribution of ``aifc`` library from PyPI.
1505+
15021506
* :mod:`!audioop`
1507+
1508+
* :pypi:`audioop-lts`:
1509+
Use ``audioop-lts`` library from PyPI.
1510+
15031511
* :mod:`!chunk`
1512+
1513+
* :pypi:`standard-chunk`:
1514+
Use the redistribution of ``chunk`` library from PyPI.
1515+
15041516
* :mod:`!cgi` and :mod:`!cgitb`
15051517

15061518
* :class:`!cgi.FieldStorage` can typically be replaced with
@@ -1531,6 +1543,9 @@ and are now removed:
15311543
For example, the :class:`email.message.EmailMessage`
15321544
and :class:`email.message.Message` classes.
15331545

1546+
* :pypi:`standard-cgi`: and :pypi:`standard-cgitb`:
1547+
Use the redistribution of ``cgi`` and ``cgitb`` library from PyPI.
1548+
15341549
* :mod:`!crypt` and the private :mod:`!_crypt` extension.
15351550
The :mod:`hashlib` module may be an appropriate replacement
15361551
when simply hashing a value is required.
@@ -1549,37 +1564,74 @@ and are now removed:
15491564
Fork of the :mod:`!crypt` module,
15501565
wrapper to the :manpage:`crypt_r(3)` library call
15511566
and associated functionality.
1567+
* :pypi:`standard-crypt` and :pypi:`deprecated-crypt-alternative`:
1568+
Use the redistribution of ``crypt`` and reimplementation of ``_crypt`` libraries from PyPI.
15521569

15531570
* :mod:`!imghdr`:
15541571
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
15551572
should be used as replacements.
15561573
For example, the :func:`!puremagic.what` function can be used
15571574
to replace the :func:`!imghdr.what` function for all file formats
15581575
that were supported by :mod:`!imghdr`.
1576+
1577+
* :pypi:`standard-imghdr`:
1578+
Use the redistribution of ``imghdr`` library from PyPI.
1579+
15591580
* :mod:`!mailcap`:
15601581
Use the :mod:`mimetypes` module instead.
1582+
1583+
* :pypi:`standard-mailcap`:
1584+
Use the redistribution of ``mailcap`` library from PyPI.
1585+
15611586
* :mod:`!msilib`
15621587
* :mod:`!nis`
15631588
* :mod:`!nntplib`:
15641589
Use the :pypi:`pynntp` library from PyPI instead.
1590+
1591+
* :pypi:`standard-nntplib`:
1592+
Use the redistribution of ``nntplib`` library from PyPI.
1593+
15651594
* :mod:`!ossaudiodev`:
15661595
For audio playback, use the :pypi:`pygame` library from PyPI instead.
15671596
* :mod:`!pipes`:
15681597
Use the :mod:`subprocess` module instead.
15691598
Use :func:`shlex.quote` to replace the undocumented ``pipes.quote``
15701599
function.
1600+
1601+
* :pypi:`standard-pipes`:
1602+
Use the redistribution of ``pipes`` library from PyPI.
1603+
15711604
* :mod:`!sndhdr`:
15721605
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
15731606
should be used as replacements.
1607+
1608+
* :pypi:`standard-sndhdr`:
1609+
Use the redistribution of ``sndhdr`` library from PyPI.
1610+
15741611
* :mod:`!spwd`:
15751612
Use the :pypi:`python-pam` library from PyPI instead.
15761613
* :mod:`!sunau`
1614+
1615+
* :pypi:`standard-sunau`:
1616+
Use the redistribution of ``sunau`` library from PyPI.
1617+
15771618
* :mod:`!telnetlib`,
15781619
Use the :pypi:`telnetlib3` or :pypi:`Exscript` libraries from PyPI instead.
1620+
1621+
* :pypi:`standard-telnetlib`:
1622+
Use the redistribution of ``telnetlib`` library from PyPI.
1623+
15791624
* :mod:`!uu`:
15801625
Use the :mod:`base64` module instead, as a modern alternative.
1626+
1627+
* :pypi:`standard-uu`:
1628+
Use the redistribution of ``uu`` library from PyPI.
1629+
15811630
* :mod:`!xdrlib`
15821631

1632+
* :pypi:`standard-xdrlib`:
1633+
Use the redistribution of ``xdrlib`` library from PyPI.
1634+
15831635
(Contributed by Victor Stinner and Zachary Ware in :gh:`104773` and :gh:`104780`.)
15841636

15851637

0 commit comments

Comments
 (0)