Fred Drake | 295da24 | 1998-08-10 19:42:37 +0000 | [diff] [blame^] | 1 | \section{\module{__main__} --- |
| 2 | Top-level script environment.} |
Fred Drake | b91e934 | 1998-07-23 17:59:49 +0000 | [diff] [blame] | 3 | \declaremodule[main]{builtin}{__main__} |
| 4 | |
| 5 | \modulesynopsis{The environment where the top-level script is run.} |
| 6 | |
Guido van Rossum | 5fdeeea | 1994-01-02 01:22:07 +0000 | [diff] [blame] | 7 | This module represents the (otherwise anonymous) scope in which the |
| 8 | interpreter's main program executes --- commands read either from |
| 9 | standard input or from a script file. |