]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119286)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 8 Apr 2025 10:32:06 +0000 (12:32 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Apr 2025 10:32:06 +0000 (12:32 +0200)
(cherry picked from commit 172690227e771c2e8ab137815073e3a172c08dec)

Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/using/cmdline.rst

index 50f6eb8cdfb45a58bcc9a8d61def1f329b234c4a..6c1fccb01c2e9528bf9e728ea8a5c9c2486ff44a 100644 (file)
@@ -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