File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -289,9 +289,15 @@ Miscellaneous options
289
289
290
290
.. option :: -i
291
291
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
295
301
:envvar: `PYTHONSTARTUP ` file is not read.
296
302
297
303
This can be useful to inspect global variables or a stack trace when a script
<
2E54
/rect>
You can’t perform that action at this time.
0 commit comments