Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareLt SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Return BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Str orelse Return BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad Num Num Num Num FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body If CompareIn SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice Num ListLoad Str Str body Assign TupleStore NameStore NameStore NameStore TupleLoad ListLoad ListLoad ListLoad While CompareLt NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd NameLoad Num If CompareGtE NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpAdd Call NameLoad SubscriptLoad NameLoad Index NameLoad BinOpMult Call NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Num Assign NameStore BinOpAdd NameLoad Num If CompareIn NameLoad ListLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Num ListLoad SubscriptLoad NameLoad Index Num Break orelse Assign SubscriptStore NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num Num While CompareEq SubscriptLoad NameLoad Index Num Num body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Slice UnaryOpUSub NameLoad ListLoad SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad If UnaryOpNot NameLoad body Break Assign SubscriptStore NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num Num If UnaryOpNot NameLoad body Break Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index Num Assign NameStore NameLoad If BinOpBitAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore BinOpAdd NameLoad Num Assign NameStore NameLoad If BinOpBitAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad NameLoad Num body Return BinOpAdd BinOpAdd Str SubscriptLoad NameLoad Index Num Str orelse Return BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn Call NameLoad NameLoad ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad Call NameLoad Lambda arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Lambda arguments args NameParam defaults BinOpAdd Str NameLoad Lambda arguments args NameParam defaults BinOpAdd Str NameLoad Lambda arguments args NameParam defaults BinOpAdd Str Call NameLoad NameLoad NameLoad body Expr Str Assign NameStore ListLoad If NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad If BoolOpAnd NameLoad CompareGtE NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Call NameLoad SubscriptLoad NameLoad Index BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return BinOpAdd BinOpAdd Str Call AttributeLoad Str attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Lambda arguments args NameParam defaults BinOpAdd Str NameLoad Lambda arguments args NameParam defaults BinOpAdd Str NameLoad Lambda arguments args NameParam defaults BinOpAdd Str Call NameLoad NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Return BinOpAdd Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Return BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str handlers ExceptHandler type NameLoad body Return NameLoad orelse Assign NameStore AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Num Call AttributeLoad SubscriptLoad NameLoad Index Num attr If CompareLt NameLoad AttributeLoad NameLoad attr body For NameStore Call NameLoad Num Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice NameLoad While BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr While BoolOpAnd NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad body If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr Raise Call NameLoad Str If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr Raise Call NameLoad Str If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Return AttributeLoad NameLoad attr Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad body Return TupleLoad NameLoad Num If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str For NameStore Call NameLoad Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body Return TupleLoad NameLoad NameLoad orelse Raise Call NameLoad Str If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Raise Call NameLoad Str Assign NameStore BinOpSub AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Str While CompareGt NameLoad Num body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body Break Assign NameStore BinOpSub NameLoad Num Return TupleLoad NameLoad NameLoad Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Return TupleLoad UnaryOpUSub Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameStore NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Slice NameLoad NameLoad body Return TupleLoad SubscriptLoad NameLoad Slice NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIn Call AttributeLoad SubscriptLoad NameLoad Slice Num attr ListLoad Str Str body Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice Num Str For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body If BoolOpAnd CompareIn Str NameLoad CompareEq Call AttributeLoad SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad attr NameLoad body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If Call NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpSub BinOpSub NameLoad Num BinOpFloorDiv NameLoad Num TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad Num Call NameLoad NameLoad BinOpSub Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Assign NameStore BinOpSub BinOpSub NameLoad Num NameLoad orelse Assign NameStore NameStore NameLoad Return TupleLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad While NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd TupleLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad While NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults Num body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad decorator_list If CompareEq NameLoad Str body Import alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return NameLoad decorator_list Print Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Print Call NameLoad AttributeLoad NameLoad attr Print Call AttributeLoad NameLoad attr NameLoad Print Call NameLoad NameLoad Print Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Print Call NameLoad Call NameLoad NameLoad
N/A N/A Subset of inspect module from upstream python

We use this instead of upstream because upstream inspect is slow to import, and
significanly contributes to numpy import times. Importing this copy has almost
no overhead.
 N/A os N/A sys N/A types N/A string N/A imp N/A linecache N/A re N/A __all__ N/A getargspec formatargspec ismodule N/A N/A object N/A N/A N/A Return true if the object is a module.

    Module objects provide these attributes:
        __doc__         documentation string
        __file__        filename (missing for built-in modules) N/A N/A isinstance object N/A types ModuleType N/A isclass N/A N/A object N/A N/A N/A Return true if the object is a class.

    Class objects provide these attributes:
        __doc__         documentation string
        __module__      name of module in which this class was defined N/A N/A N/A N/A sys version_info N/A 0 3 N/A N/A N/A N/A isinstance object N/A types ClassType N/A hasattr object __bases__ N/A N/A N/A N/A isinstance object type N/A hasattr object __bases__ N/A ismethod N/A N/A object N/A N/A N/A Return true if the object is an instance method.

    Instance method objects provide these attributes:
        __doc__         documentation string
        __name__        name with which this method was defined
        im_class        class object in which this method belongs
        im_func         function object containing implementation of method
        im_self         instance to which this method is bound, or None N/A N/A isinstance object N/A types MethodType N/A isfunction N/A N/A object N/A N/A N/A Return true if the object is a user-defined function.

    Function objects provide these attributes:
        __doc__         documentation string
        __name__        name with which this function was defined
        func_code       code object containing compiled function bytecode
        func_defaults   tuple of any default values for arguments
        func_doc        (same as __doc__)
        func_globals    global namespace in which this function was defined
        func_name       (same as __name__) N/A N/A isinstance object N/A types FunctionType N/A istraceback N/A N/A object N/A N/A N/A Return true if the object is a traceback.

    Traceback objects provide these attributes:
        tb_frame        frame object at this level
        tb_lasti        index of last attempted instruction in bytecode
        tb_lineno       current line number in Python source code
        tb_next         next inner traceback object (called by this level) N/A N/A isinstance object N/A types TracebackType N/A isframe N/A N/A object N/A N/A N/A Return true if the object is a frame object.

    Frame objects provide these attributes:
        f_back          next outer frame object (this frame's caller)
        f_builtins      built-in namespace seen by this frame
        f_code          code object being executed in this frame
        f_exc_traceback traceback if raised in this frame, or None
        f_exc_type      exception type if raised in this frame, or None
        f_exc_value     exception value if raised in this frame, or None
        f_globals       global namespace seen by this frame
        f_lasti         index of last attempted instruction in bytecode
        f_lineno        current line number in Python source code
        f_locals        local namespace seen by this frame
        f_restricted    0 or 1 if frame is in restricted execution mode
        f_trace         tracing function for this frame, or None N/A N/A isinstance object N/A types FrameType N/A iscode N/A N/A object N/A N/A N/A Return true if the object is a code object.

    Code objects provide these attributes:
        co_argcount     number of arguments (not including * or ** args)
        co_code         string of raw compiled bytecode
        co_consts       tuple of constants used in the bytecode
        co_filename     name of file in which this code object was created
        co_firstlineno  number of first line in Python source code
        co_flags        bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg
        co_lnotab       encoded mapping of line numbers to bytecode indices
        co_name         name with which this code object was defined
        co_names        tuple of names of local variables
        co_nlocals      number of local variables
        co_stacksize    virtual machine stack space required
        co_varnames     tuple of names of arguments and local variables N/A N/A isinstance object N/A types CodeType N/A N/A N/A CO_OPTIMIZED CO_NEWLOCALS CO_VARARGS CO_VARKEYWORDS N/A 1 2 4 8 getargs N/A N/A co N/A N/A N/A Get information about the arguments accepted by a code object.

    Three things are returned: (args, varargs, varkw), where 'args' is
    a list of argument names (possibly containing nested lists), and
    'varargs' and 'varkw' are the names of the * and ** arguments or None. N/A N/A N/A iscode co N/A N/A N/A TypeError arg is not a code object N/A code N/A co co_code N/A nargs N/A co co_argcount N/A names N/A co co_varnames N/A args N/A list N/A names N/A nargs N/A step 0 N/A i N/A range nargs N/A N/A N/A N/A N/A args N/A i N/A 1 N/A . N/A N/A N/A stack remain count N/A N/A N/A N/A N/A N/A step N/A len code N/A N/A op N/A ord N/A code N/A step N/A step N/A step 1 N/A N/A op N/A dis HAVE_ARGUMENT N/A N/A opname N/A N/A dis opname N/A op N/A value N/A N/A ord N/A code N/A step N/A N/A ord N/A code N/A N/A step 1 256 N/A step N/A step 2 N/A N/A opname N/A UNPACK_TUPLE UNPACK_SEQUENCE N/A N/A N/A N/A remain append value N/A N/A N/A count append value N/A N/A N/A opname STORE_FAST N/A N/A N/A N/A stack append N/A names N/A value N/A N/A remain N/A N/A N/A stack N/A 0 N/A N/A stack N/A 0 N/A N/A N/A N/A remain N/A -1 N/A N/A remain N/A -1 1 N/A N/A N/A remain N/A -1 0 N/A N/A N/A N/A remain pop N/A size N/A N/A count pop N/A N/A stack N/A N/A size N/A N/A stack N/A N/A size N/A N/A remain N/A N/A N/A N/A remain N/A -1 N/A N/A remain N/A -1 1 N/A N/A remain N/A N/A N/A N/A args N/A i N/A stack N/A 0 N/A varargs None N/A N/A N/A co co_flags CO_VARARGS N/A N/A varargs N/A N/A co co_varnames N/A nargs N/A nargs N/A nargs 1 N/A varkw None N/A N/A N/A co co_flags CO_VARKEYWORDS N/A N/A varkw N/A N/A co co_varnames N/A nargs N/A N/A args varargs varkw N/A getargspec N/A N/A func N/A N/A N/A Get the names and default values of a function's arguments.

    A tuple of four things is returned: (args, varargs, varkw, defaults).
    'args' is a list of the argument names (it may contain nested lists).
    'varargs' and 'varkw' are the names of the * and ** arguments or None.
    'defaults' is an n-tuple of the default values of the last n arguments.
     N/A N/A ismethod func N/A N/A func N/A func im_func N/A N/A N/A isfunction func N/A N/A N/A TypeError arg is not a Python function N/A N/A args varargs varkw N/A getargs N/A func func_code N/A N/A args varargs varkw N/A func func_defaults N/A getargvalues N/A N/A frame N/A N/A N/A Get information about arguments passed into a particular frame.

    A tuple of four things is returned: (args, varargs, varkw, locals).
    'args' is a list of the argument names (it may contain nested lists).
    'varargs' and 'varkw' are the names of the * and ** arguments or None.
    'locals' is the locals dictionary of the given frame. N/A N/A args varargs varkw N/A getargs N/A frame f_code N/A N/A args varargs varkw N/A frame f_locals N/A joinseq N/A N/A seq N/A N/A N/A N/A N/A len seq 1 N/A N/A N/A N/A ( N/A seq N/A 0 ,) N/A N/A N/A N/A ( N/A N/A ,  join seq ) N/A strseq N/A N/A object convert join N/A joinseq N/A N/A Recursively walk a sequence, stringifying each element. N/A N/A N/A type object N/A N/A types ListType N/A types TupleType N/A N/A N/A join N/A map N/A N/A N/A o c j N/A convert join N/A strseq o c j object N/A N/A N/A convert object N/A formatargspec N/A N/A args varargs varkw defaults formatarg formatvarargs formatvarkw formatvalue join N/A None None None str N/A N/A N/A name N/A N/A * name N/A N/A N/A name N/A N/A ** name N/A N/A N/A value N/A N/A = N/A repr value joinseq N/A N/A Format an argument spec from the 4 values returned by getargspec.

    The first four arguments are (args, varargs, varkw, defaults).  The
    other four arguments are the corresponding optional formatting functions
    that are called to turn names and values into strings.  The ninth
    argument is an optional function to format the sequence of arguments. N/A specs N/A N/A defaults N/A N/A firstdefault N/A N/A len args N/A len defaults N/A i N/A range N/A len args N/A N/A spec N/A strseq N/A args N/A i formatarg join N/A N/A defaults N/A i firstdefault N/A N/A spec N/A spec N/A formatvalue N/A defaults N/A N/A i firstdefault N/A N/A N/A specs append spec N/A N/A varargs None N/A N/A N/A N/A specs append N/A formatvarargs varargs N/A N/A varkw None N/A N/A N/A N/A specs append N/A formatvarkw varkw N/A N/A N/A ( N/A N/A ,  join specs ) N/A formatargvalues N/A N/A args varargs varkw locals formatarg formatvarargs formatvarkw formatvalue join N/A str N/A N/A N/A name N/A N/A * name N/A N/A N/A name N/A N/A ** name N/A N/A N/A value N/A N/A = N/A repr value joinseq N/A N/A Format an argument spec from the 4 values returned by getargvalues.

    The first four arguments are (args, varargs, varkw, locals).  The
    next four arguments are the corresponding optional formatting functions
    that are called to turn names and values into strings.  The ninth
    argument is an optional function to format the sequence of arguments. convert N/A N/A name locals formatarg formatvalue N/A locals formatarg formatvalue N/A N/A N/A N/A formatarg name N/A formatvalue N/A locals N/A name N/A N/A specs N/A N/A i N/A range N/A len args N/A N/A N/A N/A specs append N/A strseq N/A args N/A i convert join N/A varargs N/A N/A N/A N/A specs append N/A N/A formatvarargs varargs N/A formatvalue N/A locals N/A varargs N/A varkw N/A N/A N/A N/A specs append N/A N/A formatvarkw varkw N/A formatvalue N/A locals N/A varkw N/A N/A N/A ( N/A N/A string join specs ,  ) N/A indentsize N/A N/A line N/A N/A N/A Return the indent size, in spaces, at the start of a line of text. N/A expline N/A N/A string expandtabs line N/A N/A N/A len expline N/A len N/A N/A string lstrip expline N/A getdoc N/A N/A object N/A N/A N/A Get the documentation string for an object.

    All tabs are expanded to spaces.  To clean up docstrings that are
    indented to line up with blocks of code, any whitespace than can be
    uniformly removed from the second line onwards is removed. N/A N/A N/A doc N/A object __doc__ N/A N/A N/A AttributeError N/A N/A None N/A N/A N/A isinstance doc N/A types StringTypes N/A N/A None N/A N/A N/A lines N/A N/A string split N/A N/A string expandtabs doc N/A N/A N/A UnicodeError N/A N/A None N/A N/A margin N/A sys maxint N/A line N/A lines N/A 1 N/A N/A content N/A len N/A N/A string lstrip line N/A content N/A N/A indent N/A N/A len line content N/A margin N/A min margin indent N/A lines N/A N/A N/A lines N/A 0 N/A N/A N/A lines N/A 0 lstrip N/A N/A margin N/A sys maxint N/A N/A i N/A range 1 N/A len lines N/A N/A N/A lines N/A i N/A N/A lines N/A i N/A margin N/A N/A lines N/A N/A lines N/A -1 N/A N/A N/A N/A lines pop N/A N/A lines N/A N/A lines N/A 0 N/A N/A N/A N/A lines pop 0 N/A N/A N/A string join lines N/A getfile N/A N/A object N/A N/A N/A Work out which source or compiled file an object was defined in. N/A N/A ismodule object N/A N/A N/A hasattr object __file__ N/A N/A N/A object __file__ N/A N/A TypeError arg is a built-in module N/A N/A isclass object N/A N/A object N/A N/A N/A sys modules get N/A object __module__ N/A N/A hasattr object __file__ N/A N/A N/A object __file__ N/A N/A TypeError arg is a built-in class N/A N/A ismethod object N/A N/A object N/A object im_func N/A N/A isfunction object N/A N/A object N/A object func_code N/A N/A istraceback object N/A N/A object N/A object tb_frame N/A N/A isframe object N/A N/A object N/A object f_code N/A N/A iscode object N/A N/A N/A object co_filename N/A N/A TypeError arg is not a module, class, method, function, traceback, frame, or code object N/A findsource N/A N/A object N/A N/A N/A Return the entire source file and starting line number for an object.

    The argument may be a module, class, method, function, traceback, frame,
    or code object.  The source code is returned as a list of all the lines
    in the file and the line number indexes a line in that list.  An IOError
    is raised if the source code cannot be retrieved. N/A file N/A N/A getsourcefile object N/A getfile object N/A lines N/A N/A linecache getlines file N/A N/A lines N/A N/A N/A IOError could not get source code N/A N/A ismodule object N/A N/A N/A lines 0 N/A N/A isclass object N/A N/A name N/A object __name__ N/A pat N/A N/A re compile N/A N/A ^\s*class\s* name \b N/A i N/A range N/A len lines N/A N/A N/A N/A pat match N/A lines N/A i N/A N/A N/A lines i N/A N/A N/A IOError could not find class definition N/A N/A ismethod object N/A N/A object N/A object im_func N/A N/A isfunction object N/A N/A object N/A object func_code N/A N/A istraceback object N/A N/A object N/A object tb_frame N/A N/A isframe object N/A N/A object N/A object f_code N/A N/A iscode object N/A N/A N/A N/A hasattr object co_firstlineno N/A N/A N/A IOError could not find function definition N/A lnum N/A N/A object co_firstlineno 1 N/A pat N/A N/A re compile ^(\s*def\s)|(.*(?<!\w)lambda(:|\s))|^(\s*@) N/A N/A lnum 0 N/A N/A N/A N/A pat match N/A lines N/A lnum N/A N/A N/A lnum N/A lnum 1 N/A N/A lines lnum N/A N/A IOError could not find code object N/A getmoduleinfo N/A N/A path N/A N/A N/A Get the module name, suffix, mode, and module type for a given file. N/A filename N/A N/A N/A os path basename path _f N/A N/A suffix mode mtype N/A N/A N/A N/A N/A N/A len suffix suffix mode mtype N/A N/A suffixes N/A map _f N/A N/A imp get_suffixes N/A N/A N/A suffixes sort N/A N/A neglen suffix mode mtype suffixes N/A N/A N/A N/A filename N/A neglen suffix N/A N/A N/A N/A filename N/A neglen suffix mode mtype N/A getmodulename N/A N/A path N/A N/A N/A Return the module name for a given file, or None. N/A info N/A getmoduleinfo path N/A info N/A N/A N/A info N/A 0 N/A getsourcefile N/A N/A object N/A N/A N/A Return the Python source file an object was defined in, if it exists. N/A filename N/A getfile object N/A N/A N/A N/A N/A filename N/A -4 lower N/A .pyc .pyo N/A N/A filename N/A N/A filename N/A -4 .py N/A N/A suffix mode kind N/A N/A imp get_suffixes N/A N/A N/A N/A b mode N/A N/A N/A N/A filename N/A N/A N/A len suffix lower suffix N/A N/A None N/A N/A N/A N/A os path exists filename N/A N/A filename N/A getframeinfo N/A N/A frame context N/A 1 N/A N/A Get information about a frame or traceback object.

    A tuple of five things is returned: the filename, the line number of
    the current line, the function name, a list of lines of context from
    the source code, and the index of the current line within that list.
    The optional second argument specifies the number of lines of context
    to return, which are centered around the current line. N/A N/A istraceback frame N/A N/A lineno N/A frame tb_lineno N/A frame N/A frame tb_frame N/A N/A lineno N/A frame f_lineno N/A N/A N/A isframe frame N/A N/A N/A TypeError arg is not a frame or traceback object N/A filename N/A N/A getsourcefile frame N/A getfile frame N/A N/A context 0 N/A N/A start N/A N/A lineno 1 N/A context 2 N/A N/A N/A N/A lines lnum N/A findsource frame N/A N/A N/A IOError N/A N/A lines index None N/A N/A start N/A max start 1 N/A start N/A max 0 N/A min start N/A N/A len lines context N/A lines N/A lines N/A start N/A start context N/A index N/A N/A lineno 1 start N/A N/A lines index None N/A N/A filename lineno N/A N/A frame f_code co_name lines index N/A getlineno N/A N/A frame N/A N/A N/A Get the line number from a frame object, allowing for optimization. N/A N/A frame f_lineno N/A getouterframes N/A N/A frame context N/A 1 N/A N/A Get a list of records for a frame and all higher (calling) frames.

    Each record contains a frame object, filename, line number, function
    name, a list of lines of context, and index within the context. N/A framelist N/A N/A frame N/A N/A N/A N/A framelist append N/A N/A frame N/A getframeinfo frame context N/A frame N/A frame f_back N/A framelist N/A getinnerframes N/A N/A tb context N/A 1 N/A N/A Get a list of records for a traceback's frame and all lower frames.

    Each record contains a frame object, filename, line number, function
    name, a list of lines of context, and index within the context. N/A framelist N/A N/A tb N/A N/A N/A N/A framelist append N/A N/A N/A tb tb_frame N/A getframeinfo tb context N/A tb N/A tb tb_next N/A framelist N/A N/A currentframe N/A sys _getframe stack N/A N/A context N/A 1 N/A N/A Return a list of records for the stack above the caller's frame. N/A N/A getouterframes N/A N/A sys _getframe 1 context N/A N/A N/A __name__ __main__ N/A N/A inspect foo N/A N/A x y z N/A None N/A N/A None N/A N/A N/A N/A inspect getargs N/A foo func_code N/A N/A getargs N/A foo func_code N/A N/A N/A inspect getargspec foo N/A N/A getargspec foo N/A N/A N/A inspect formatargspec N/A N/A inspect getargspec foo N/A N/A formatargspec N/A getargspec foo