]> granicus.if.org Git - python/commitdiff
issue 20091 - index entry for __main__ in runpy docs.
authorSenthil Kumaran <senthil@uthcode.com>
Fri, 20 Jun 2014 08:37:53 +0000 (01:37 -0700)
committerSenthil Kumaran <senthil@uthcode.com>
Fri, 20 Jun 2014 08:37:53 +0000 (01:37 -0700)
Doc/library/runpy.rst

index ee9fbcf529cb42a9b344a7ec100b703654ba4ee5..a764696a38ac28e2d5d966cd053ef9cecb7cbb8a 100644 (file)
@@ -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