8000 [3.12] gh-102136: Add -m to options that work with -i (GH-119271) by miss-islington · Pull Request #119286 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-102136: Add -m to options that work with -i (GH-119271) #119286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
8000
Diff view
Next Next commit
gh-102136: Add -m to options that work with -i (GH-119271)
* GH-102136: Add -m to options that work with -i

* Linting
(cherry picked from commit 1726902)

Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com>
  • Loading branch information
melaniearbor authored and miss-islington committed May 20, 2024
commit b43ae9bcf8ac6b4760be19f4a20b7d85d9ba7a08
12 changes: 9 additions & 3 deletions Doc/using/cmdline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,15 @@ Miscellaneous options

.. option:: -i

When a script is passed as first argument or the :option:`-c` option is used,
enter interactive mode after executing the script or the command, even when
:data:`sys.stdin` does not appear to be a terminal. The
Enter interactive mode after execution.

Using the :option:`-i` option will enter interactive mode in any of the following circumstances\:

* When a script is passed as first argument
* When the :option:`-c` option is used
* When the :option:`-m` option is used

Interactive mode will start even when :data:`sys.stdin` does not appear to be a terminal. The
:envvar:`PYTHONSTARTUP` file is not read.

This can be useful to inspect global variables or a stack trace when a script
Expand Down
Loading
0