8000 gh-102136: Add -m to options that work with -i (GH-119271) · python/cpython@1726902 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1726902

Browse files
authored
gh-102136: Add -m to options that work with -i (GH-119271)
* GH-102136: Add -m to options that work with -i * Linting
1 parent 423bbcb commit 1726902

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Doc/using/cmdline.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,15 @@ Miscellaneous options
290290

291291
.. option:: -i
292292

293-
When a script is passed as first argument or the :option:`-c` option is used,
294-
enter interactive mode after executing the script or the command, even when
295-
:data:`sys.stdin` does not appear to be a terminal. The
293+
Enter interactive mode after execution.
294+
295+
Using the :option:`-i` option will enter interactive mode in any of the following circumstances\:
296+
297+
* When a script is passed as first argument
298+
* When the :option:`-c` option is used
299+
* When the :option:`-m` option is used
300+
301+
Interactive mode will start even when :data:`sys.stdin` does not appear to be a terminal. The
296302
:envvar:`PYTHONSTARTUP` file is not read.
297303

298304
This can be useful to inspect global variables or a stack trace when a script

0 commit comments

Comments
 (0)
0