mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-106535: Document PEP 387 Soft Deprecation (#106536)
Mark the optparse module as soft deprecated.
This commit is contained in:
parent
1fb9bd222b
commit
d524b6f61f
2 changed files with 18 additions and 2 deletions
|
@ -1107,6 +1107,21 @@ Glossary
|
||||||
when several are given, such as in ``variable_name[1:3:5]``. The bracket
|
when several are given, such as in ``variable_name[1:3:5]``. The bracket
|
||||||
(subscript) notation uses :class:`slice` objects internally.
|
(subscript) notation uses :class:`slice` objects internally.
|
||||||
|
|
||||||
|
soft deprecated
|
||||||
|
A soft deprecation can be used when using an API which should no longer
|
||||||
|
be used to write new code, but it remains safe to continue using it in
|
||||||
|
existing code. The API remains documented and tested, but will not be
|
||||||
|
developed further (no enhancement).
|
||||||
|
|
||||||
|
The main difference between a "soft" and a (regular) "hard" deprecation
|
||||||
|
is that the soft deprecation does not imply scheduling the removal of the
|
||||||
|
deprecated API.
|
||||||
|
|
||||||
|
Another difference is that a soft deprecation does not issue a warning.
|
||||||
|
|
||||||
|
See `PEP 387: Soft Deprecation
|
||||||
|
<https://peps.python.org/pep-0387/#soft-deprecation>`_.
|
||||||
|
|
||||||
special method
|
special method
|
||||||
.. index:: pair: special; method
|
.. index:: pair: special; method
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
**Source code:** :source:`Lib/optparse.py`
|
**Source code:** :source:`Lib/optparse.py`
|
||||||
|
|
||||||
.. deprecated:: 3.2
|
.. deprecated:: 3.2
|
||||||
The :mod:`optparse` module is deprecated and will not be developed further;
|
The :mod:`optparse` module is :term:`soft deprecated` and will not be
|
||||||
development will continue with the :mod:`argparse` module.
|
developed further; development will continue with the :mod:`argparse`
|
||||||
|
module.
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue