Staging
v0.8.1
v0.8.1
Revision 03a27822d1498ddd7c3ac03b5c1ca92c09d19c3e authored by Benjamin Peterson on 30 May 2009, 15:41:59 UTC, committed by Benjamin Peterson on 30 May 2009, 15:41:59 UTC
1 parent e6ad387
__main__.rst
:mod:`__main__` --- Top-level script environment
================================================
.. module:: __main__
:synopsis: 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, 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::
if __name__ == "__main__":
main()
Computing file changes ...