Skip to content

Commit 499dff1

Browse files
Remove outdated information from optparse module docstring and docs (#157982)
1 parent ee1bbf0 commit 499dff1

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎Doc/library/optparse.rst‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@ Choosing an argument parsing library
1616
The standard library includes three argument parsing libraries:
1717

1818
* :mod:`getopt`: a module that closely mirrors the procedural C ``getopt`` API.
19-
Included in the standard library since before the initial Python 1.0 release.
2019
* :mod:`!optparse`: a declarative replacement for ``getopt`` that
2120
provides equivalent functionality without requiring each application
22-
to implement its own procedural option parsing logic. Included
23-
in the standard library since the Python 2.3 release.
21+
to implement its own procedural option parsing logic.
2422
* :mod:`argparse`: a more opinionated alternative to ``optparse`` that
2523
provides more functionality by default, at the expense of reduced application
26-
flexibility in controlling exactly how arguments are processed. Included in
27-
the standard library since the Python 2.7 and Python 3.2 releases.
24+
flexibility in controlling exactly how arguments are processed.
2825

2926
In the absence of more specific argument parsing design constraints, :mod:`argparse`
3027
is the recommended choice for implementing command line applications, as it offers

‎Lib/optparse.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
"""A powerful, extensible, and easy-to-use option parser.
22
3-
By Greg Ward <gward@python.net>
4-
5-
Originally distributed as Optik.
6-
7-
For support, use the optik-users@lists.sourceforge.net mailing list
8-
(http://lists.sourceforge.net/lists/listinfo/optik-users).
9-
103
Simple usage example:
114
125
from optparse import OptionParser

0 commit comments

Comments
 (0)