summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2014-06-20 08:37:53 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2014-06-20 08:37:53 (GMT)
commit4932e14542e10191b6b598307641f6b54c5da239 (patch)
treedbea3df507d8deec2e15985267d9261f3471f684 /Doc/library
parent642d4b654f920f88c9dba1aedfe1fdd98bd0a0c1 (diff)
downloadcpython-4932e14542e10191b6b598307641f6b54c5da239.zip
cpython-4932e14542e10191b6b598307641f6b54c5da239.tar.gz
cpython-4932e14542e10191b6b598307641f6b54c5da239.tar.bz2
issue 20091 - index entry for __main__ in runpy docs.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/runpy.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/runpy.rst b/Doc/library/runpy.rst
index ee9fbcf..a764696 100644
--- a/Doc/library/runpy.rst
+++ b/Doc/library/runpy.rst
@@ -28,6 +28,9 @@ The :mod:`runpy` module provides two functions:
.. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)
+ .. index::
+ module: __main__
+
Execute the code of the specified module and return the resulting module
globals dictionary. The module's code is first located using the standard
import mechanism (refer to :pep:`302` for details) and then executed in a
@@ -87,6 +90,9 @@ The :mod:`runpy` module provides two functions:
.. function:: run_path(file_path, init_globals=None, run_name=None)
+ .. index::
+ module: __main__
+
Execute the code at the named filesystem location and return the resulting
module globals dictionary. As with a script name supplied to the CPython
command line, the supplied path may refer to a Python source file, a