Yurttas/PL/SL/python/docs/core-python-programming/doc/152/lib/module-main.html

3.32 __main__ -- Top-level script environment.

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.


Send comments on this document to python-docs@python.org.