https://github.com/python/cpython/commit/936dc2d443606489cdb95e651b799aff8466ee3d commit: 936dc2d443606489cdb95e651b799aff8466ee3d branch: 3.12 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: ambv <luk...@langa.pl> date: 2025-04-08T12:32:06+02:00 summary:
[3.12] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119286) (cherry picked from commit 172690227e771c2e8ab137815073e3a172c08dec) Co-authored-by: Melanie Arbor <hellomelan...@gmail.com> Co-authored-by: Carol Willing <carolc...@willingconsulting.com> files: M Doc/using/cmdline.rst diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 50f6eb8cdfb45a..6c1fccb01c2e95 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -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 _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com