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

Skip to content

Commit 936dc2d

Browse files
miss-islingtonmelaniearborwillingc
authored
[3.12] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119286)
(cherry picked from commit 1726902) Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
1 parent 492a554 commit 936dc2d

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
@@ -289,9 +289,15 @@ Miscellaneous options
289289

290290
.. option:: -i
291291

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

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

0 commit comments

Comments
 (0)
0