mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add note to sys.orig_argv
clarifying the difference from sys.argv
(#114630)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
This commit is contained in:
parent
b25b7462d5
commit
1836f674c0
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue