Skip to content

Commit e66ad91

Browse files
miss-islingtonshenanigansdnedbat
authored
[3.11] Add note to sys.orig_argv clarifying the difference from sys.argv (GH-114630) (#114822)
Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630) (cherry picked from commit 1836f67) Co-authored-by: Bradley Reynolds <[email protected]> Co-authored-by: Ned Batchelder <[email protected]>
1 parent 8e323cb commit e66ad91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/sys.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1240,7 +1240,10 @@ always available.
12401240
The list of the original command line arguments passed to the Python
12411241
executable.
12421242

1243-
See also :data:`sys.argv`.
1243+
The elements of :data:`sys.orig_argv` are the arguments to the Python interpreter,
1244+
while the elements of :data:`sys.argv` are the arguments to the user's program.
1245+
Arguments consumed by the interpreter itself will be present in :data:`sys.orig_argv`
1246+
and missing from :data:`sys.argv`.
12441247

12451248
.. versionadded:: 3.10
12461249

0 commit comments

Comments
 (0)