Skip to content

Commit 1836f67

Browse files
shenanigansdnedbat
andauthored
Add note to sys.orig_argv clarifying the difference from sys.argv (#114630)
Co-authored-by: Ned Batchelder <[email protected]>
1 parent b25b746 commit 1836f67

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
@@ -1293,7 +1293,10 @@ always available.
12931293
The list of the original command line arguments passed to the Python
12941294
executable.
12951295

1296-
See also :data:`sys.argv`.
1296+
The elements of :data:`sys.orig_argv` are the arguments to the Python interpreter,
1297+
while the elements of :data:`sys.argv` are the arguments to the user's program.
1298+
Arguments consumed by the interpreter itself will be present in :data:`sys.orig_argv`
1299+
and missing from :data:`sys.argv`.
12971300

12981301
.. versionadded:: 3.10
12991302

0 commit comments

Comments
 (0)