Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4b321 commit a45b0efCopy full SHA for a45b0ef
1 file changed
Doc/reference/executionmodel.rst
@@ -22,7 +22,9 @@ The following are blocks: a module, a function body, and a class definition.
22
Each command typed interactively is a block. A script file (a file given as
23
standard input to the interpreter or specified as a command line argument to the
24
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
+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
28
argument passed to the built-in functions :func:`eval` and :func:`exec` is a
29
code block.
30
0 commit comments