Skip to content

Commit a45b0ef

Browse files
JulienPalardmatrixise
authored andcommitted
Doc: Add -m reference in context of code execution (GH-16045)
1 parent ed4b321 commit a45b0ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/reference/executionmodel.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ The following are blocks: a module, a function body, and a class definition.
2222
Each command typed interactively is a block. A script file (a file given as
2323
standard input to the interpreter or specified as a command line argument to the
2424
interpreter) is a code block. A script command (a command specified on the
25-
interpreter command line with the :option:`-c` option) is a code block. The string
25+
interpreter command line with the :option:`-c` option) is a code block.
26+
A module run as a top level script (as module ``__main__``) from the command
27+
line using a :option:`-m` argument is also a code block. The string
2628
argument passed to the built-in functions :func:`eval` and :func:`exec` is a
2729
code block.
2830

0 commit comments

Comments
 (0)