PEP 594: remove modules from the list that are already gone (#2274)

This commit is contained in:
Brett Cannon 2022-01-25 15:12:44 -08:00 committed by GitHub
parent 9906d56876
commit 4a0747fc63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 64 deletions

View File

@ -141,11 +141,7 @@ audio processing.
cgitb,3.11 (2.0\*\*),3.13,1995,no,\-
chunk,3.11,3.13,1999,no,\-
crypt,3.11,3.13,1994,**yes (inactive)**,"legacycrypt_, bcrypt_, argon2-cffi_, hashlib_, passlib_"
formatter,**3.4**,3.10,1995,no,\-
fpectl,**3.7**,**3.7**,1997,n/a,\-
imghdr,3.11,3.13,1992,no,"filetype_, puremagic_, python-magic_"
imp,**3.4**,3.12,1990/1995,no,importlib_
macpath,**3.7**,**3.11**,1990,n/a,\-
msilib,3.11,3.13,2006,no,\-
nntplib,3.11,3.13,1992,no,\-
nis,3.8 (3.0\*),3.13,1992,no,\-
@ -196,16 +192,6 @@ and decodes Apple Macintosh binhex4 data. It was originally developed for
TRS-80. In the 1980s and early 1990s it was used on classic Mac OS 9 to
encode binary email attachments.
Module type
pure Python
Deprecated in
3.11
To be removed in
3.13
Has a designated expert
no
Substitute
**none**
uu and the uu encoding
~~~~~~~~~~~~~~~~~~~~~~
@ -435,14 +421,6 @@ quality and insecure. Users are discouraged to use them.
authentication module), see `spwd`_ deprecation.
macpath
~~~~~~~
The `macpath <https://docs.python.org/3/library/macpath.html>`_ module
provides Mac OS 9 implementation of ``os.path`` routines. Mac OS 9 is no longer
supported.
nis
~~~
@ -476,22 +454,6 @@ security engine like SELinux or AppArmor.
Misc modules
------------
formatter
~~~~~~~~~
The `formatter <https://docs.python.org/3/library/formatter.html>`_ module
is an old text formatting module which has been deprecated since Python 3.4.
imp
~~~
The `imp <https://docs.python.org/3/library/imp.html>`_ module is the
predecessor of the
`importlib <https://docs.python.org/3/library/importlib.html>`_ module. Most
functions have been deprecated since Python 3.3 and the module since
Python 3.4.
msilib
~~~~~~
@ -516,19 +478,6 @@ The module is built on top of ``os.popen``. Users are encouraged to use
the subprocess module instead.
Removed modules
===============
fpectl
------
The `fpectl <https://docs.python.org/3.6/library/fpectl.html>`_ module was
never built by default, its usage was discouraged and considered dangerous.
It also required a configure flag that caused an ABI incompatibility. The
module was removed in 3.7 by Nathaniel J. Smith in
`bpo-29137 <https://bugs.python.org/issue29137>`_.
Modules to keep
===============
@ -574,16 +523,6 @@ Several core developers expressed their interest to keep the module in the
standard library, as it is handy for quick scripts.
lib2to3
-------
The `lib2to3 <https://docs.python.org/3/library/2to3.html>`_ package provides
the ``2to3`` command to transpile Python 2 code to Python 3 code.
The package is useful for other tasks besides porting code from Python 2 to
3. For example, `Black`_ uses it for code reformatting.
getopt
------
@ -632,9 +571,6 @@ Discussions
of modules like ``imp`` until Python 3.10. Version 3.8 will be released
shortly before Python 2 reaches end-of-life. A delay reduced churn for
users that migrate from Python 2 to 3.8.
* Brett also came up with the idea to keep ``lib2to3``. The package is useful
for other purposes, e.g. `Black <https://pypi.org/project/black/>`_ uses
it to reformat Python code.
* At one point, distutils was mentioned in the same sentence as this PEP.
To avoid lengthy discussion and delay of the PEP, I decided against dealing
with distutils. Deprecation of the distutils package will be handled by