Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c28fbb

Browse filesBrowse 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
Copy full SHA for 1c28fbb

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎Doc/library/getopt.rst

Copy file name to clipboardExpand all lines: Doc/library/getopt.rst
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.