Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit1c28fbb

Browse files
committed
Deprecate the getopt module in its documentation
The getopt module existed since the initial revision of the Pythonsource code (1990). The optparse module was added to Python 2.3. WhenPython 2.7 added the 3rd argparse module, the optparse module wasdeprecated but only in the documentation.
1 parentb97e14a commit1c28fbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎Doc/library/getopt.rst

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp