]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (#114630)
authorBradley Reynolds <bradley.reynolds@darbia.dev>
Wed, 31 Jan 2024 21:33:28 +0000 (15:33 -0600)
committerGitHub <noreply@github.com>
Wed, 31 Jan 2024 21:33:28 +0000 (13:33 -0800)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Doc/library/sys.rst

index abf2c393a44928da03f9841c5dbb1a6d6a35dc8f..a97a369b77b88a897daeadbf17501a9ead991bb4 100644 (file)
@@ -1293,7 +1293,10 @@ always available.
    The list of the original command line arguments passed to the Python
    executable.
 
-   See also :data:`sys.argv`.
+   The elements of :data:`sys.orig_argv` are the arguments to the Python interpreter,
+   while the elements of :data:`sys.argv` are the arguments to the user's program.
+   Arguments consumed by the interpreter itself will be present in :data:`sys.orig_argv`
+   and missing from :data:`sys.argv`.
 
    .. versionadded:: 3.10