Skip to content

Commit

Permalink
Deprecate the getopt module in its documentation
Browse files Browse the repository at this point in the history
The getopt module existed since the initial revision of the Python
source code (1990). The optparse module was added to Python 2.3. When
Python 2.7 added the 3rd argparse module, the optparse module was
deprecated but only in the documentation.
  • Loading branch information
vstinner committed Jun 13, 2023
1 parent b97e14a commit 1c28fbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/getopt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

**Source code:** :source:`Lib/getopt.py`

.. deprecated:: 3.13
The :mod:`getopt` module is deprecated and will not be developed further;
development will continue with the :mod:`argparse` module.

.. note::

The :mod:`getopt` module is a parser for command line options whose API is
Expand Down

0 comments on commit 1c28fbb

Please sign in to comment.