Skip to content

Commit 1c28fbb

Browse files
committed
Deprecate the getopt module in its documentation
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.
1 parent b97e14a commit 1c28fbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/getopt.rst

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

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

10+
.. deprecated:: 3.13
11+
The :mod:`getopt` module is deprecated and will not be developed further;
12+
development will continue with the :mod:`argparse` module.
13+
1014
.. note::
1115

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

0 commit comments

Comments
 (0)