Keep colorsys (#1070)
This commit is contained in:
parent
2d536899f0
commit
fdfece520c
76
pep-0594.rst
76
pep-0594.rst
|
@ -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
|
||||
|
@ -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,\-
|
||||
|
||||
|
||||
|
@ -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
|
||||
~~~~~
|
||||
|
||||
|
@ -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
|
||||
---------
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
==========
|
||||
|
||||
|
|
Loading…
Reference in New Issue