Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd611b0

Browse files
committed
A little more text, and some really minor cleanups.
1 parent e581bb3 commit dd611b0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

Doc/lib/libmain.tex

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
\section{\module{__main__} ---
2-
Top-level script environment.}
3-
\declaremodule[main]{builtin}{__main__}
2+
Top-level script environment}
43

4+
\declaremodule[main]{builtin}{__main__}
55
\modulesynopsis{The environment where the top-level script is run.}
66

77
This module represents the (otherwise anonymous) scope in which the
88
interpreter's main program executes --- commands read either from
9-
standard input or from a script file.
9+
standard input, from a script file, or from an interactive prompt. It
10+
is this environment in which the idiomatic ``conditional script''
11+
stanza causes a script to run:
12+
13+
\begin{verbatim}
14+
if __name__ == "__main__":
15+
main()
16+
\end{verbatim}

0 commit comments

Comments
 (0)