[3.12] Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630) (#114821)

https://github.com/python/cpython/commit/c8e4c32105aff5c762ee3602426603212dc... commit: c8e4c32105aff5c762ee3602426603212dcbcd40 branch: 3.12 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: hauntsaninja <12621235+hauntsaninja@users.noreply.github.com> date: 2024-01-31T21:40:11Z summary: [3.12] Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630) (#114821) Add note to `sys.orig_argv` clarifying the difference from `sys.argv` (GH-114630) (cherry picked from commit 1836f674c0d86ec3375189a550c8f4a52ff89ae8) Co-authored-by: Bradley Reynolds <bradley.reynolds@darbia.dev> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> files: M Doc/library/sys.rst diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 62783a417e7583..4bd769ea9ae59d 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1279,7 +1279,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
participants (1)
-
hauntsaninja