diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-11 19:06:08 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-06-11 19:06:08 (GMT) |
commit | 4da945f361cda03104548f49bad690a54b0209f7 (patch) | |
tree | ed25742482aca03601d01a6c6fccc65a5e0ded2c /Doc/library/__main__.rst | |
parent | e670be2273f93dfc262e16ebc27f0d453f15fa21 (diff) | |
parent | fa089b9b0b926c04e5d57812b7d7653472787965 (diff) | |
download | cpython-4da945f361cda03104548f49bad690a54b0209f7.zip cpython-4da945f361cda03104548f49bad690a54b0209f7.tar.gz cpython-4da945f361cda03104548f49bad690a54b0209f7.tar.bz2 |
Merge Issue #22558.
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. |