Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8f73a188
Commit
8f73a188
authored
Aug 17, 2000
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A little more text, and some really minor cleanups.
parent
e13d4b01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Doc/lib/libmain.tex
Doc/lib/libmain.tex
+10
-3
No files found.
Doc/lib/libmain.tex
View file @
8f73a188
\section
{
\module
{__
main
__}
---
Top-level script environment.
}
\declaremodule
[main]
{
builtin
}{__
main
__}
Top-level script environment
}
\declaremodule
[main]
{
builtin
}{__
main
__}
\modulesynopsis
{
The environment where the top-level script is run.
}
This module represents the (otherwise anonymous) scope in which the
interpreter's main program executes --- commands read either from
standard input or from a script file.
standard input, from a script file, or from an interactive prompt. It
is this environment in which the idiomatic ``conditional script''
stanza causes a script to run:
\begin{verbatim}
if
__
name
__
== "
__
main
__
":
main()
\end{verbatim}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment