summaryrefslogtreecommitdiffstats
path: root/Doc/library/__main__.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-11 19:02:54 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-11 19:02:54 (GMT)
commitfa089b9b0b926c04e5d57812b7d7653472787965 (patch)
tree8dc5960aa04533868f942b0e325df1048ef05999 /Doc/library/__main__.rst
parentc92bf83a829956e683a3d6bb1ae65aed74d7b92a (diff)
downloadcpython-fa089b9b0b926c04e5d57812b7d7653472787965.zip
cpython-fa089b9b0b926c04e5d57812b7d7653472787965.tar.gz
cpython-fa089b9b0b926c04e5d57812b7d7653472787965.tar.bz2
Issue #22558: Add remaining doc links to source code for Python-coded modules.
Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
Diffstat (limited to 'Doc/library/__main__.rst')
-rw-r--r--Doc/library/__main__.rst2
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.