Module Expr Str Import alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Exec NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore CompareIn NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad TryFinally body Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad finalbody Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod BinOpAdd Str Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad Return Call NameLoad NameLoad NameLoad NameLoad Str NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad Dict NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body If CompareLt Call NameLoad AttributeLoad NameLoad attr Num body Print AttributeLoad NameLoad attr Str orelse Delete SubscriptDel AttributeLoad NameLoad attr Index Num Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num
N/A N/A runpy.py - locating and running Python code using the module namespace

Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.

This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
 N/A sys N/A imp N/A N/A imp get_loader N/A N/A N/A ImportError N/A pkgutil get_loader N/A __all__ N/A run_module _run_code N/A N/A code run_globals init_globals mod_name mod_fname mod_loader pkg_name N/A None None None None None N/A N/A Helper for _run_module_code N/A N/A init_globals None N/A N/A N/A N/A run_globals update init_globals N/A N/A N/A run_globals update __name__ mod_name __file__ mod_fname __loader__ mod_loader __package__ pkg_name N/A code run_globals N/A run_globals N/A _run_module_code N/A N/A code init_globals mod_name mod_fname mod_loader pkg_name N/A None None None None None N/A N/A Helper for run_module N/A temp_module N/A N/A imp new_module mod_name N/A mod_globals N/A temp_module __dict__ N/A saved_argv0 N/A N/A sys argv N/A 0 N/A restore_module N/A mod_name N/A sys modules N/A restore_module N/A N/A saved_module N/A N/A sys modules N/A mod_name N/A N/A N/A sys argv N/A 0 mod_fname N/A N/A N/A sys modules N/A mod_name temp_module N/A N/A N/A N/A _run_code code mod_globals init_globals mod_name mod_fname mod_loader pkg_name N/A N/A N/A N/A sys argv N/A 0 saved_argv0 N/A restore_module N/A N/A N/A N/A sys modules N/A mod_name saved_module N/A N/A N/A N/A sys modules N/A mod_name N/A N/A N/A mod_globals copy N/A _get_filename N/A N/A loader mod_name N/A N/A N/A N/A N/A get_filename N/A loader get_filename N/A N/A N/A AttributeError N/A N/A None N/A N/A N/A get_filename mod_name N/A _get_module_details N/A N/A mod_name N/A N/A N/A loader N/A get_loader mod_name N/A N/A loader None N/A N/A N/A ImportError N/A No module named %s mod_name N/A N/A N/A loader is_package mod_name N/A N/A N/A ImportError N/A N/A %s is a package and cannot  be directly executed mod_name N/A code N/A N/A loader get_code mod_name N/A N/A code None N/A N/A N/A ImportError N/A No code object available for %s mod_name N/A filename N/A _get_filename loader mod_name N/A N/A loader code filename N/A _run_module_as_main N/A N/A mod_name set_argv0 N/A True N/A N/A Runs the designated module in the __main__ namespace

       These __*__ magic variables will be overwritten:
           __file__
           __loader__
     N/A N/A N/A N/A loader code fname N/A _get_module_details mod_name N/A N/A N/A ImportError N/A exc N/A N/A set_argv0 N/A N/A info N/A str exc N/A N/A info N/A can't find '__main__.py' in %r N/A N/A sys argv N/A 0 N/A msg N/A %s: %s N/A N/A sys executable info N/A N/A N/A sys exit msg N/A pkg_name N/A N/A N/A mod_name rpartition . N/A 0 N/A main_globals N/A N/A N/A sys modules N/A __main__ __dict__ N/A set_argv0 N/A N/A N/A N/A sys argv N/A 0 fname N/A N/A _run_code code main_globals None __main__ fname loader pkg_name N/A run_module N/A N/A mod_name init_globals run_name alter_sys N/A None None False N/A N/A Execute a module's code without importing it

       Returns the resulting top level namespace dictionary
     N/A N/A loader code fname N/A _get_module_details mod_name N/A N/A run_name None N/A N/A run_name mod_name N/A pkg_name N/A N/A N/A mod_name rpartition . N/A 0 N/A alter_sys N/A N/A N/A _run_module_code code init_globals run_name fname loader pkg_name N/A N/A N/A _run_code code N/A init_globals run_name fname loader pkg_name N/A N/A N/A __name__ __main__ N/A N/A N/A N/A len N/A sys argv 2 N/A N/A N/A sys stderr No module specified for execution N/A N/A N/A N/A sys argv N/A 0 N/A N/A _run_module_as_main N/A N/A sys argv N/A 0