Skip to content

Commit

Permalink
[3.11] Add note to sys.orig_argv clarifying the difference from `sy…
Browse files Browse the repository at this point in the history
…s.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 <bradley.reynolds@darbia.dev>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
  • Loading branch information
3 people committed Jan 31, 2024
1 parent 8e323cb commit e66ad91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,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

Expand Down

0 comments on commit e66ad91

Please sign in to comment.