mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
gh-102136: Add -m to options that work with -i (GH-119271)
* GH-102136: Add -m to options that work with -i * Linting
This commit is contained in:
parent
423bbcbbc4
commit
172690227e
1 changed files with 9 additions and 3 deletions
|
@ -290,9 +290,15 @@ Miscellaneous options
|
||||||
|
|
||||||
.. option:: -i
|
.. option:: -i
|
||||||
|
|
||||||
When a script is passed as first argument or the :option:`-c` option is used,
|
Enter interactive mode after execution.
|
||||||
enter interactive mode after executing the script or the command, even when
|
|
||||||
:data:`sys.stdin` does not appear to be a terminal. The
|
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.
|
:envvar:`PYTHONSTARTUP` file is not read.
|
||||||
|
|
||||||
This can be useful to inspect global variables or a stack trace when a script
|
This can be useful to inspect global variables or a stack trace when a script
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue