Skip to content

Commit 0a568f1

Browse files
committed
Wording tweaks
1 parent a560986 commit 0a568f1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Doc/howto/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ recommended command-line parsing module in the Python standard library.
1515

1616
There are two other modules that fulfill the same task, namely
1717
:mod:`getopt` (an equivalent for ``getopt()`` from the C
18-
language) and the deprecated :mod:`optparse`.
18+
language) and the lower level :mod:`optparse` module.
1919
Note also that :mod:`argparse` is based on :mod:`optparse`,
2020
and therefore very similar in terms of usage.
2121

Doc/library/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
While :mod:`argparse` is the recommended standard library module for
1717
*implementing* command line applications, authors of third party
1818
command line argument processing libraries may find that the
19-
simpler :mod:`optparse` module serves as a better foundation for
19+
lower level :mod:`optparse` module serves as a better foundation for
2020
that use case.
2121

2222
--------------

Doc/whatsnew/3.13.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,8 +1655,8 @@ optparse
16551655
While :mod:`argparse` remains preferred for new projects that
16561656
aren't using a third party command line argument processing
16571657
library, there are aspects of the way ``argparse`` works that
1658-
means ``optparse`` may provide a better foundation for *writing*
1659-
argument processing libraries.
1658+
means the lower level ``optparse`` module may provide a better
1659+
foundation for *writing* argument processing libraries.
16601660
(Contributed by Alyssa Coghlan in :gh:`126225`.)
16611661

16621662

Misc/NEWS.d/next/Library/2024-10-31-14-31-36.gh-issue-126225.vTxGXm.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ There are legitimate reasons to use one of these modules in preference to
33
:mod:`argparse`, and none of these modules are at risk of being removed
44
from the standard library. Of the three, ``argparse`` remains the
55
recommended default choice, *unless* one of the concerns noted at the top of
6-
the module documentation applies.
6+
the ``optparse`` module documentation applies.

0 commit comments

Comments
 (0)