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.
2 parents a93342b + 5021cb5 commit e8b59daCopy full SHA for e8b59da
1 file changed
Doc/library/__main__.rst
@@ -12,7 +12,7 @@ standard input, a script, or from an interactive prompt.
12
A module can discover whether or not it is running in the main scope by
13
checking its own ``__name__``, which allows a common idiom for conditionally
14
executing code in a module when it is run as a script or with ``python
15
--m`` but not when it is imported:
+-m`` but not when it is imported::
16
17
if __name__ == "__main__":
18
# execute only if run as a script
0 commit comments