diff options
Diffstat (limited to 'Doc/library/__main__.rst')
-rw-r--r-- | Doc/library/__main__.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/__main__.rst b/Doc/library/__main__.rst index a46993d..a64faf1 100644 --- a/Doc/library/__main__.rst +++ b/Doc/library/__main__.rst @@ -5,6 +5,8 @@ .. module:: __main__ :synopsis: The environment where the top-level script is run. +-------------- + ``'__main__'`` is the name of the scope in which top-level code executes. A module's __name__ is set equal to ``'__main__'`` when read from standard input, a script, or from an interactive prompt. |