Skip to content

Commit d7d4edf

Browse files
[3.13] gh-109975: Add list of 3.13 removed library replacements (GH-127816) (#129242)
Co-authored-by: Jeong, YunWon <[email protected]>
1 parent c7f9e74 commit d7d4edf

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

Doc/whatsnew/3.13.rst

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

15101510
* :mod:`!aifc`
1511+
1512+
* :pypi:`standard-aifc`:
1513+
Use the redistribution of ``aifc`` library from PyPI.
1514+
15111515
* :mod:`!audioop`
1516+
1517+
* :pypi:`audioop-lts`:
1518+
Use ``audioop-lts`` library from PyPI.
1519+
15121520
* :mod:`!chunk`
1521+
1522+
* :pypi:`standard-chunk`:
1523+
Use the redistribution of ``chunk`` library from PyPI.
1524+
15131525
* :mod:`!cgi` and :mod:`!cgitb`
15141526

15151527
* :class:`!cgi.FieldStorage` can typically be replaced with
@@ -1540,6 +1552,9 @@ and are now removed:
15401552
For example, the :class:`email.message.EmailMessage`
15411553
and :class:`email.message.Message` classes.
15421554

1555+
* :pypi:`standard-cgi`: and :pypi:`standard-cgitb`:
1556+
Use the redistribution of ``cgi`` and ``cgitb`` library from PyPI.
1557+
15431558
* :mod:`!crypt` and the private :mod:`!_crypt` extension.
15441559
The :mod:`hashlib` module may be an appropriate replacement
15451560
when simply hashing a value is required.
@@ -1558,37 +1573,74 @@ and are now removed:
15581573
Fork of the :mod:`!crypt` module,
15591574
wrapper to the :manpage:`crypt_r(3)` library call
15601575
and associated functionality.
1576+
* :pypi:`standard-crypt` and :pypi:`deprecated-crypt-alternative`:
1577+
Use the redistribution of ``crypt`` and reimplementation of ``_crypt`` libraries from PyPI.
15611578

15621579
* :mod:`!imghdr`:
15631580
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
15641581
should be used as replacements.
15651582
For example, the :func:`!puremagic.what` function can be used
15661583
to replace the :func:`!imghdr.what` function for all file formats
15671584
that were supported by :mod:`!imghdr`.
1585+
1586+
* :pypi:`standard-imghdr`:
1587+
Use the redistribution of ``imghdr`` library from PyPI.
1588+
15681589
* :mod:`!mailcap`:
15691590
Use the :mod:`mimetypes` module instead.
1591+
1592+
* :pypi:`standard-mailcap`:
1593+
Use the redistribution of ``mailcap`` library from PyPI.
1594+
15701595
* :mod:`!msilib`
15711596
* :mod:`!nis`
15721597
* :mod:`!nntplib`:
15731598
Use the :pypi:`pynntp` library from PyPI instead.
1599+
1600+
* :pypi:`standard-nntplib`:
1601+
Use the redistribution of ``nntplib`` library from PyPI.
1602+
15741603
* :mod:`!ossaudiodev`:
15751604
For audio playback, use the :pypi:`pygame` library from PyPI instead.
15761605
* :mod:`!pipes`:
15771606
Use the :mod:`subprocess` module instead.
15781607
Use :func:`shlex.quote` to replace the undocumented ``pipes.quote``
15791608
function.
1609+
1610+
* :pypi:`standard-pipes`:
1611+
Use the redistribution of ``pipes`` library from PyPI.
1612+
15801613
* :mod:`!sndhdr`:
15811614
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
15821615
should be used as replacements.
1616+
1617+
* :pypi:`standard-sndhdr`:
1618+
Use the redistribution of ``sndhdr`` library from PyPI.
1619+
15831620
* :mod:`!spwd`:
15841621
Use the :pypi:`python-pam` library from PyPI instead.
15851622
* :mod:`!sunau`
1623+
1624+
* :pypi:`standard-sunau`:
1625+
Use the redistribution of ``sunau`` library from PyPI.
1626+
15861627
* :mod:`!telnetlib`,
15871628
Use the :pypi:`telnetlib3` or :pypi:`Exscript` libraries from PyPI instead.
1629+
1630+
* :pypi:`standard-telnetlib`:
1631+
Use the redistribution of ``telnetlib`` library from PyPI.
1632+
15881633
* :mod:`!uu`:
15891634
Use the :mod:`base64` module instead, as a modern alternative.
1635+
1636+
* :pypi:`standard-uu`:
1637+
Use the redistribution of ``uu`` library from PyPI.
1638+
15901639
* :mod:`!xdrlib`
15911640

1641+
* :pypi:`standard-xdrlib`:
1642+
Use the redistribution of ``xdrlib`` library from PyPI.
1643+
15921644
(Contributed by Victor Stinner and Zachary Ware in :gh:`104773` and :gh:`104780`.)
15931645

15941646

0 commit comments

Comments
 (0)