Module Expr Str FunctionDef arguments args NameParam defaults body Expr Str If CompareNotIn Str NameLoad body Return Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad While NameLoad body AugAssignAdd NameStore BinOpAdd Str SubscriptLoad NameLoad Index Num TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad Break Assign NameStore NameLoad While NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If UnaryOpNot Call NameLoad NameLoad Str NameLoad body Raise Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If UnaryOpNot Call AttributeLoad NameLoad attr Str body Raise Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad Call NameLoad NameLoad body If CompareEq NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Slice NameLoad body Return NameLoad Raise decorator_list
N/A N/A 
'imports' a string -- converts a string to a Python object, importing
any necessary modules and evaluating the expression.  Everything
before the : in an import expression is the module path; everything
after is an expression to be evaluated in the namespace of that
module.

Alternately, if no : is present, then import the modules and get the
attributes as necessary.  Arbitrary expressions are not allowed in
that case.
 eval_import N/A N/A s N/A N/A N/A 
    Import a module, or import an object from a module.

    A module name like ``foo.bar:baz()`` can be used, where
    ``foo.bar`` is the module, and ``baz()`` is an expression
    evaluated in the context of that module.  Note this is not safe on
    arbitrary strings because of the eval.
     N/A N/A : s N/A N/A N/A simple_import s N/A N/A module_name expr N/A N/A s split : 1 N/A module N/A import_module module_name N/A obj N/A eval expr N/A module __dict__ N/A obj N/A simple_import N/A N/A s N/A N/A N/A 
    Import a module, or import an object from a module.

    A name like ``foo.bar.baz`` can be a module ``foo.bar.baz`` or a
    module ``foo.bar`` with an object ``baz`` in it, or a module
    ``foo`` with an object ``bar`` with an attribute ``baz``.
     N/A parts N/A N/A s split . N/A module N/A import_module N/A parts N/A 0 N/A name N/A parts N/A 0 N/A parts N/A parts N/A 1 N/A last_import_error None N/A parts N/A N/A name N/A . N/A parts N/A 0 N/A N/A N/A module N/A import_module name N/A parts N/A parts N/A 1 N/A N/A N/A ImportError N/A e N/A N/A last_import_error e N/A N/A obj module N/A parts N/A N/A N/A N/A obj N/A getattr module N/A parts N/A 0 N/A N/A N/A AttributeError N/A N/A N/A ImportError N/A Cannot find %s in module %r (stopped importing modules with error %s) N/A N/A parts N/A 0 module last_import_error N/A parts N/A parts N/A 1 N/A obj N/A import_module N/A N/A s N/A N/A N/A 
    Import a module.
     N/A mod N/A __import__ s N/A parts N/A N/A s split . N/A part N/A parts N/A 1 N/A N/A mod N/A getattr mod part N/A mod N/A try_import_module N/A N/A module_name N/A N/A N/A 
    Imports a module, but catches import errors.  Only catches errors
    when that module doesn't exist; if that module itself has an
    import error it will still get raised.  Returns None if the module
    doesn't exist.
     N/A N/A N/A N/A import_module module_name N/A N/A N/A ImportError N/A e N/A N/A N/A N/A getattr e args None N/A N/A N/A desc N/A N/A e args N/A 0 N/A N/A N/A N/A desc startswith No module named  N/A N/A N/A desc N/A desc N/A N/A len No module named  N/A parts N/A N/A module_name split . N/A i N/A range N/A len parts N/A N/A N/A desc N/A N/A . join N/A parts N/A i N/A N/A None N/A N/A