Module Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad For NameStore Call NameLoad NameLoad Num Num body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str Num NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str Return BinOpMod Str TupleLoad SubscriptLoad NameLoad Slice NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad NameLoad attr Str body If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Num For NameStore NameLoad body If CompareNotEq NameLoad Str body Break AugAssignAdd NameStore Num Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list
N/A N/A sys _resolve_name N/A N/A name package level N/A N/A N/A Return the absolute name of the module to be imported. N/A N/A N/A hasattr package rindex N/A N/A N/A ValueError 'package' not set to a string N/A dot N/A len package N/A x N/A xrange level 1 -1 N/A N/A N/A N/A dot N/A N/A package rindex . 0 dot N/A N/A N/A ValueError N/A N/A N/A ValueError attempted relative import beyond top-level package N/A N/A %s.%s N/A N/A package N/A dot name N/A import_module N/A N/A name package N/A None N/A N/A Import a module.

    The 'package' argument is required when performing a relative import. It
    specifies the package to use as the anchor point from which to resolve the
    relative import to an absolute import.

     N/A N/A N/A name startswith . N/A N/A N/A package N/A N/A N/A TypeError relative imports require the 'package' argument N/A level 0 N/A character name N/A N/A N/A character . N/A N/A N/A level 1 N/A name N/A _resolve_name N/A name N/A level package level N/A N/A __import__ name N/A N/A N/A sys modules N/A name N/A