cpython: fd9f7bdd7472 (original) (raw)

Mercurial > cpython

changeset 91284:fd9f7bdd7472

merge from 3.4 issue 20091 - index entry for __main__ in runpy docs. [#20091]

Senthil Kumaran senthil@uthcode.com
date Fri, 20 Jun 2014 01:38:37 -0700
parents 590ad80784bf(current diff)1727dcfff233(diff)
children 2abe48ac614a
files
diffstat 1 files changed, 6 insertions(+), 0 deletions(-)[+] [-] Doc/library/runpy.rst 6

line wrap: on

line diff

--- a/Doc/library/runpy.rst +++ b/Doc/library/runpy.rst @@ -28,6 +28,9 @@ The :mod:runpy module provides two fun .. function:: run_module(mod_name, init_globals=None, run_name=None, alter_sys=False)

+ 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 fun .. function:: run_path(file_path, init_globals=None, run_name=None)

+ 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