Skip to content

Commit 9b06a8d

Browse files
[3.13] Docs: re-create pages for removed modules to document their removal. (GH-126622) (#126709)
Co-authored-by: Ned Batchelder <[email protected]>
1 parent af35aa2 commit 9b06a8d

28 files changed

+451
-0
lines changed

Doc/library/aifc.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!aifc` --- Read and write AIFF and AIFC files
2+
===================================================
3+
4+
.. module:: aifc
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!aifc` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/aifc.html>`_.

Doc/library/asynchat.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:mod:`!asynchat` --- Asynchronous socket command/response handler
2+
=================================================================
3+
4+
.. module:: asynchat
5+
:synopsis: Removed in 3.12.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.6 3.12
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after
12+
being deprecated in Python 3.6. The removal was decided in :pep:`594`.
13+
14+
Applications should use the :mod:`asyncio` module instead.
15+
16+
The last version of Python that provided the :mod:`!asynchat` module was
17+
`Python 3.11 <https://docs.python.org/3.11/library/asynchat.html>`_.

Doc/library/asyncore.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:mod:`!asyncore` --- Asynchronous socket handler
2+
================================================
3+
4+
.. module:: asyncore
5+
:synopsis: Removed in 3.12.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.6 3.12
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after
12+
being deprecated in Python 3.6. The removal was decided in :pep:`594`.
13+
14+
Applications should use the :mod:`asyncio` module instead.
15+
16+
The last version of Python that provided the :mod:`!asyncore` module was
17+
`Python 3.11 <https://docs.python.org/3.11/library/asyncore.html>`_.

Doc/library/audioop.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!audioop` --- Manipulate raw audio data
2+
=============================================
3+
4+
.. module:: audioop
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!audioop` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/audioop.html>`_.

Doc/library/cgi.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:mod:`!cgi` --- Common Gateway Interface support
2+
================================================
3+
4+
.. module:: cgi
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
A fork of the module on PyPI can be used instead: :pypi:`legacy-cgi`.
15+
This is a copy of the cgi module, no longer maintained or supported by the core
16+
Python team.
17+
18+
The last version of Python that provided the :mod:`!cgi` module was
19+
`Python 3.12 <https://docs.python.org/3.12/library/cgi.html>`_.

Doc/library/cgitb.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:mod:`!cgitb` --- Traceback manager for CGI scripts
2+
===================================================
3+
4+
.. module:: cgitb
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
A fork of the module on PyPI can now be used instead: :pypi:`legacy-cgi`.
15+
This is a copy of the cgi module, no longer maintained or supported by the core
16+
Python team.
17+
18+
The last version of Python that provided the :mod:`!cgitb` module was
19+
`Python 3.12 <https://docs.python.org/3.12/library/cgitb.html>`_.

Doc/library/chunk.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!chunk` --- Read IFF chunked data
2+
=======================================
3+
4+
.. module:: chunk
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!chunk` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/chunk.html>`_.

Doc/library/crypt.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
:mod:`!crypt` --- Function to check Unix passwords
2+
==================================================
3+
4+
.. module:: crypt
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
Applications can use the :mod:`hashlib` module from the standard library.
15+
Other possible replacements are third-party libraries from PyPI:
16+
:pypi:`legacycrypt`, :pypi:`bcrypt`, :pypi:`argon2-cffi`, or :pypi:`passlib`.
17+
These are not supported or maintained by the Python core team.
18+
19+
The last version of Python that provided the :mod:`!crypt` module was
20+
`Python 3.12 <https://docs.python.org/3.12/library/crypt.html>`_.

Doc/library/distutils.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:mod:`!distutils` --- Building and installing Python modules
2+
============================================================
3+
4+
.. module:: distutils
5+
:synopsis: Removed in 3.12.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.10 3.12
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed-distutils>` after
12+
being deprecated in Python 3.10. The removal was decided in :pep:`632`,
13+
which has `migration advice
14+
<https://peps.python.org/pep-0632/#migration-advice>`_.
15+
16+
The last version of Python that provided the :mod:`!distutils` module was
17+
`Python 3.11 <https://docs.python.org/3.11/library/distutils.html>`_.

Doc/library/imghdr.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:mod:`!imghdr` --- Determine the type of an image
2+
=================================================
3+
4+
.. module:: imghdr
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
Possible replacements are third-party libraries from PyPI:
15+
:pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic`.
16+
These are not supported or maintained by the Python core team.
17+
18+
The last version of Python that provided the :mod:`!imghdr` module was
19+
`Python 3.12 <https://docs.python.org/3.12/library/imghdr.html>`_.

Doc/library/imp.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:mod:`!imp` --- Access the import internals
2+
===========================================
3+
4+
.. module:: imp
5+
:synopsis: Removed in 3.12.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.4 3.12
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed-imp>` after
12+
being deprecated in Python 3.4.
13+
14+
The :ref:`removal notice <whatsnew312-removed-imp>` includes guidance for
15+
migrating code from :mod:`!imp` to :mod:`importlib`.
16+
17+
The last version of Python that provided the :mod:`!imp` module was
18+
`Python 3.11 <https://docs.python.org/3.11/library/imp.html>`_.

Doc/library/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ the `Python Package Index <https://pypi.org>`_.
7575
unix.rst
7676
cmdline.rst
7777
superseded.rst
78+
removed.rst
7879
security_warnings.rst

Doc/library/mailcap.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!mailcap` --- Mailcap file handling
2+
=========================================
3+
4+
.. module:: mailcap
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!mailcap` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/mailcap.html>`_.

Doc/library/msilib.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!msilib` --- Read and write Microsoft Installer files
2+
===========================================================
3+
4+
.. module:: msilib
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!msilib` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/msilib.html>`_.

Doc/library/nis.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!nis` --- Interface to Sun’s NIS (Yellow Pages)
2+
=====================================================
3+
4+
.. module:: nis
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!nis` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/nis.html>`_.

Doc/library/nntplib.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!nntplib` --- NNTP protocol client
2+
========================================
3+
4+
.. module:: nntplib
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!nntplib` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/nntplib.html>`_.

Doc/library/ossaudiodev.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:mod:`!ossaudiodev` --- Access to OSS-compatible audio devices
2+
==============================================================
3+
4+
.. module:: ossaudiodev
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
The last version of Python that provided the :mod:`!ossaudiodev` module was
15+
`Python 3.12 <https://docs.python.org/3.12/library/ossaudiodev.html>`_.

Doc/library/pipes.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
:mod:`!pipes` --- Interface to shell pipelines
2+
==============================================
3+
4+
.. module:: pipes
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
Applications should use the :mod:`subprocess` module instead.
15+
16+
The last version of Python that provided the :mod:`!pipes` module was
17+
`Python 3.12 <https://docs.python.org/3.12/library/pipes.html>`_.

Doc/library/removed.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
:tocdepth: 1
2+
3+
.. _removed:
4+
5+
***************
6+
Removed Modules
7+
***************
8+
9+
The modules described in this chapter have been removed from the Python
10+
standard library. They are documented here to help people find replacements.
11+
12+
13+
.. toctree::
14+
:maxdepth: 1
15+
16+
aifc.rst
17+
asynchat.rst
18+
asyncore.rst
19+
audioop.rst
20+
cgi.rst
21+
cgitb.rst
22+
chunk.rst
23+
crypt.rst
24+
distutils.rst
25+
imghdr.rst
26+
imp.rst
27+
mailcap.rst
28+
msilib.rst
29+
nis.rst
30+
nntplib.rst
31+
ossaudiodev.rst
32+
pipes.rst
33+
smtpd.rst
34+
sndhdr.rst
35+
spwd.rst
36+
sunau.rst
37+
telnetlib.rst
38+
uu.rst
39+
xdrlib.rst

Doc/library/smtpd.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
:mod:`!smtpd` --- SMTP Server
2+
=============================
3+
4+
.. module:: smtpd
5+
:synopsis: Removed in 3.12.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.6 3.12
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.12 <whatsnew312-removed>` after
12+
being deprecated in Python 3.6. The removal was decided in :pep:`594`.
13+
14+
A possible replacement is the third-party :pypi:`aiosmtpd` library. This
15+
library is not maintained or supported by the Python core team.
16+
17+
The last version of Python that provided the :mod:`!smtpd` module was
18+
`Python 3.11 <https://docs.python.org/3.11/library/smtpd.html>`_.

Doc/library/sndhdr.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:mod:`!sndhdr` --- Determine type of sound file
2+
===============================================
3+
4+
.. module:: sndhdr
5+
:synopsis: Removed in 3.13.
6+
:deprecated:
7+
8+
.. deprecated-removed:: 3.11 3.13
9+
10+
This module is no longer part of the Python standard library.
11+
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
12+
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
13+
14+
Possible replacements are third-party modules from PyPI:
15+
:pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic`.
16+
These are not supported or maintained by the Python core team.
17+
18+
The last version of Python that provided the :mod:`!sndhdr` module was
19+
`Python 3.12 <https://docs.python.org/3.12/library/sndhdr.html>`_.

0 commit comments

Comments
 (0)