https://github.com/python/cpython/commit/5e6436a00cd26a8f4b0d023123491236441a25a9
commit: 5e6436a00cd26a8f4b0d023123491236441a25a9
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-09-26T09:34:28Z
summary:

[3.14] Remove outdated information from `optparse` module docstring and docs 
(GH-157982) (#158223)

(cherry picked from commit 499dff16d54c2e73a289c69168bf848a56956ced)

Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/library/optparse.rst
M Lib/optparse.py

diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index 51827e1f8da534..a3b8c2f3dc8292 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -19,15 +19,12 @@ Choosing an argument parsing library
 The standard library includes three argument parsing libraries:
 
 * :mod:`getopt`: a module that closely mirrors the procedural C ``getopt`` API.
-  Included in the standard library since before the initial Python 1.0 release.
 * :mod:`!optparse`: a declarative replacement for ``getopt`` that
   provides equivalent functionality without requiring each application
-  to implement its own procedural option parsing logic. Included
-  in the standard library since the Python 2.3 release.
+  to implement its own procedural option parsing logic.
 * :mod:`argparse`: a more opinionated alternative to ``optparse`` that
   provides more functionality by default, at the expense of reduced application
-  flexibility in controlling exactly how arguments are processed. Included in
-  the standard library since the Python 2.7 and Python 3.2 releases.
+  flexibility in controlling exactly how arguments are processed.
 
 In the absence of more specific argument parsing design constraints, 
:mod:`argparse`
 is the recommended choice for implementing command line applications, as it 
offers
diff --git a/Lib/optparse.py b/Lib/optparse.py
index 38cf16d21efffa..f304153bced6d2 100644
--- a/Lib/optparse.py
+++ b/Lib/optparse.py
@@ -1,12 +1,5 @@
 """A powerful, extensible, and easy-to-use option parser.
 
-By Greg Ward <[email protected]>
-
-Originally distributed as Optik.
-
-For support, use the [email protected] mailing list
-(http://lists.sourceforge.net/lists/listinfo/optik-users).
-
 Simple usage example:
 
    from optparse import OptionParser

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to