From: Senthil Kumaran Date: Fri, 20 Jun 2014 08:36:58 +0000 (-0700) Subject: issue 20091 - index entry for __main__ in runpy docs. X-Git-Tag: v2.7.8~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=454a5155d2f1501d25e9f24c767b6a10d56947d9;p=python issue 20091 - index entry for __main__ in runpy docs. --- diff --git a/Doc/library/runpy.rst b/Doc/library/runpy.rst index 31562feae0..fc9e7c1488 100644 --- a/Doc/library/runpy.rst +++ b/Doc/library/runpy.rst @@ -22,6 +22,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 @@ -77,6 +80,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