Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 41 additions & 35 deletions pep-0594.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,15 @@ audio processing.
cgi,3.8,3.10,\-
cgitb,3.8,3.10,\-
chunk,3.8,3.10,\-
colorsys,3.8,3.10,"colormath, colour, colorspacious, Pillow"
crypt,3.8,3.10,"bcrypt, argon2cffi, hashlib, passlib"
fileinput,\-,**keep**,argparse
formatter,3.4,3.10,\-
fpectl,**3.7**,**3.7**,\-
getopt,**3.2**,**keep**,"argparse, optparse"
imghdr,3.8,3.10,"filetype, puremagic, python-magic"
imp,**3.4**,3.10,importlib
lib2to3,\-,**keep**,
macpath,**3.7**,**3.8**,\-
msilib,3.8,3.10,\-
nntplib,3.8,3.10,\-
nis,3.8,3.10,\-
optparse,\-,**keep**,argparse
ossaudiodev,3.8,3.10,\-
parser,**2.5**,**3.9**,"ast, lib2to3.pgen2"
pipes,3.8,3.10,subprocess
Expand All @@ -173,7 +168,6 @@ audio processing.
spwd,3.8,3.10,"python-pam, simplepam"
sunau,3.8,3.10,\-
uu,3.8,3.10,\-
wave,\-,**keep**,
xdrlib,3.8,3.10,\-


Expand Down Expand Up @@ -272,29 +266,6 @@ To be removed in
Substitute
**none**

colorsys
~~~~~~~~

The `colorsys <https://docs.python.org/3/library/colorsys.html>`_ module
defines color conversion functions between RGB, YIQ, HSL, and HSV coordinate
systems.

The PyPI packages *colormath*, *colour*, and *colorspacious* provide more and
advanced features. The Pillow library is better suited to transform images
between color systems.

Module type
pure Python
Deprecated in
3.8
To be removed in
3.10
Substitute
`colormath <https://pypi.org/project/colormath/>`_,
`colour <https://pypi.org/project/colour/>`_
`colorspacious <https://pypi.org/project/colorspacious/>`_,
`Pillow <https://pypi.org/project/Pillow/>`_

chunk
~~~~~

Expand Down Expand Up @@ -750,6 +721,41 @@ Modules to keep

Some modules were originally proposed for deprecation.

.. csv-table:: Table 2: Withdrawn deprecations
:header: "Module", "Deprecated in", "Replacement"
:widths: 1, 1, 2

colorsys,\-,"colormath, colour, colorspacious, Pillow"
fileinput,\-,argparse
getopt,\-,"argparse, optparse"
lib2to3,\-,
optparse,**3.2**,argparse
wave,\-,

colorsys
--------

The `colorsys <https://docs.python.org/3/library/colorsys.html>`_ module
defines color conversion functions between RGB, YIQ, HSL, and HSV coordinate
systems.

Walter Dörwald, Petr Viktorin, and others requested to keep ``colorsys``. The
module is useful to convert CSS colors between coordinate systems. The
implementation is simple, mature, and does not impose maintenance overhead
on core development.

The PyPI packages *colormath*, *colour*, and *colorspacious* provide more and
advanced features. The Pillow library is better suited to transform images
between color systems.

Module type
pure Python
Substitute
`colormath <https://pypi.org/project/colormath/>`_,
`colour <https://pypi.org/project/colour/>`_
`colorspacious <https://pypi.org/project/colorspacious/>`_,
`Pillow <https://pypi.org/project/Pillow/>`_

fileinput
---------

Expand Down Expand Up @@ -826,12 +832,6 @@ the ``array`` module could gain support for 24 bit (3 byte) arrays.

Module type
pure Python (depends on *byteswap* from `audioop`_ C extension)
Deprecated in
3.8
To be removed in
3.10
Substitute
*n/a*


Future maintenance of removed modules
Expand Down Expand Up @@ -904,6 +904,12 @@ Update 1
* The future maintenance section now states that the deprecated modules
may be adopted by Python community members.

Update 2
--------

* Keep ``colorsys`` module


References
==========

Expand Down