Skip to content

Commit c97f209

Browse files
StanFromIrelandmiss-islington
authored andcommitted
Remove outdated information from optparse module docstring and docs (GH-157982)
(cherry picked from commit 499dff1) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 1ef709e commit c97f209

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
@@ -19,15 +19,12 @@ Choosing an argument parsing library
1919
The standard library includes three argument parsing libraries:
2020

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

3229
In the absence of more specific argument parsing design constraints, :mod:`argparse`
3330
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)