From 90c4774e0de82ccf411c985bc392ca1ae8ae2a3e Mon Sep 17 00:00:00 2001 From: VanshAgarwal24036 Date: Thu, 15 Jan 2026 16:15:29 +0530 Subject: [PATCH 1/2] gh-143860: Clarify parse_args argument order wording --- Doc/library/argparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index f4109fe0e5f2bf..9ca34c54c75370 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1491,7 +1491,7 @@ The parse_args() method created and how they are assigned. See the documentation for :meth:`!add_argument` for details. - * args_ - List of strings to parse. The default is taken from + * args_ - List of strings to parse, in the order they appear. The default is taken from :data:`sys.argv`. * namespace_ - An object to take the attributes. The default is a new empty From 268182ea1dda41aac1b1fa6da7d2e93509477dd4 Mon Sep 17 00:00:00 2001 From: VanshAgarwal24036 Date: Thu, 15 Jan 2026 18:32:45 +0530 Subject: [PATCH 2/2] gh-143860: Clarify parse_args argument order guarantee --- Doc/library/argparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 9ca34c54c75370..621664dec75ce5 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1491,7 +1491,7 @@ The parse_args() method created and how they are assigned. See the documentation for :meth:`!add_argument` for details. - * args_ - List of strings to parse, in the order they appear. The default is taken from + * args_ - List of strings to parse, in normal iteration order. The default is taken from :data:`sys.argv`. * namespace_ - An object to take the attributes. The default is a new empty