Module Expr Str Assign NameStore Str Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore NameStore TupleLoad Num Num Num Num Assign TupleStore NameStore NameStore NameStore TupleLoad Num Num Num Assign NameStore BinOpLShift Num Num 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 BoolOpOr Call NameLoad NameLoad AttributeLoad NameLoad attr 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 BoolOpAnd Call NameLoad NameLoad Str UnaryOpNot Call NameLoad NameLoad Str UnaryOpNot Call NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpAnd Call NameLoad NameLoad Str Call NameLoad NameLoad Str decorator_list If Call NameLoad NameLoad Str body FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list orelse FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list If Call NameLoad NameLoad Str body FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list orelse FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad 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 If BoolOpAnd BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad BinOpBitAnd AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad 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 FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad 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 BoolOpAnd Call NameLoad NameLoad NameLoad BinOpBitAnd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If BoolOpOr UnaryOpNot NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body For NameStore NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Break If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Str orelse If BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore Str orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Return AttributeLoad NameLoad attr orelse Assign NameStore ListLoad Expr Call NameLoad NameLoad NameLoad Return Call NameLoad NameLoad 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 Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str 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 Assign NameStore Call NameLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults TupleLoad UnaryOpUSub Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num 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 Call NameLoad 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 NameLoad attr SubscriptLoad NameLoad Slice Num TupleLoad 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 NameLoad attr SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad NameLoad body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad If Call NameLoad Call NameLoad NameLoad NameLoad Str body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If Call NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad Str body Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad If CompareIn NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd Call NameLoad NameLoad Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Continue Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad SubscriptStore NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If UnaryOpNot Call NameLoad NameLoad Str body Return NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BoolOpOr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse 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 Assign NameStore ListLoad For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If NameLoad body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str body Return TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Num NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num 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 TryExcept body Assign TupleStore NameStore NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return NameLoad If Call NameLoad NameLoad body Assign NameStore Num If BoolOpAnd NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num Str body Assign NameStore Num While BoolOpAnd CompareLt NameLoad Call NameLoad NameLoad CompareIn Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad TupleLoad Str Str body Assign NameStore BinOpAdd NameLoad Num If BoolOpAnd CompareLt NameLoad Call NameLoad NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice Num Str body Assign NameStore ListLoad Assign NameStore NameLoad While BoolOpAnd CompareLt NameLoad Call NameLoad NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice Num Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad Str orelse If CompareGt NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpSub NameLoad Num If BoolOpAnd CompareGtE NameLoad Num CompareEq SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Slice Num Str CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpSub NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad While BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num Str CompareEq Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad body Assign SubscriptStore NameLoad Slice Num ListLoad NameLoad Assign NameStore BinOpSub NameLoad Num If CompareLt NameLoad Num body Break Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad While BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore NameLoad Slice Num ListLoad While BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str body Assign SubscriptStore NameLoad Slice Num ListLoad Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign TupleStore NameStore NameStore NameLoad If UnaryOpNot AttributeLoad NameLoad attr body If CompareIn NameLoad TupleLoad Str Str Str body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Raise NameLoad orelse If AttributeLoad NameLoad attr body Pass orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num If CompareLtE AttributeLoad NameLoad attr Num body Raise NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num CompareNotIn NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass Return SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad If Call NameLoad NameLoad body Return TupleLoad NameLoad Num orelse Return TupleLoad Call NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Dict Assign NameStore ListLoad For NameStore NameLoad body If AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If UnaryOpNot CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad ListLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Break orelse If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str Str 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 Call NameLoad SubscriptLoad NameLoad Slice NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body If CompareIn SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice Num TupleLoad Str Str body Assign TupleStore NameStore NameStore NameStore TupleLoad ListLoad ListLoad ListLoad While CompareLt NameLoad Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr 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 AttributeLoad NameLoad attr Index NameLoad BinOpMult Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpAdd NameLoad Num Num Assign NameStore BinOpAdd NameLoad Num If CompareIn NameLoad TupleLoad 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 Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str Str 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 Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad 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 NameLoad attr NameLoad Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIn Call NameLoad NameLoad TupleLoad NameLoad NameLoad 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 NameLoad attr NameLoad Str 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 Assign NameStore Call NameLoad Str Str 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 Call NameLoad 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 FunctionDef arguments args NameParam defaults Num body Expr Str Return Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num NameLoad decorator_list
N/A N/A Get useful information from live Python objects.

This module encapsulates the interface provided by the internal special
attributes (func_*, co_*, im_*, tb_*, etc.) in a friendlier fashion.
It also provides some help for examining source code and class layout.

Here are some of the useful functions provided by this module:

    ismodule(), isclass(), ismethod(), isfunction(), isgeneratorfunction(),
        isgenerator(), istraceback(), isframe(), iscode(), isbuiltin(),
        isroutine() - check object types
    getmembers() - get members of an object that satisfy a given condition

    getfile(), getsourcefile(), getsource() - find an object's source code
    getdoc(), getcomments() - get documentation on an object
    getmodule() - determine the module that an object came from
    getclasstree() - arrange classes so as to represent their hierarchy

    getargspec(), getargvalues() - get info about function arguments
    formatargspec(), formatargvalues() - format an argument spec
    getouterframes(), getinnerframes() - get info about frames
    currentframe() - get the current stack frame
    stack(), trace() - get info about frames on the stack or in a traceback
 N/A __author__ Ka-Ping Yee <ping@lfw.org> N/A __date__ 1 Jan 2001 N/A sys N/A os N/A types N/A string N/A re N/A dis N/A imp N/A tokenize N/A linecache operator attrgetter collections namedtuple N/A N/A CO_OPTIMIZED CO_NEWLOCALS CO_VARARGS CO_VARKEYWORDS N/A 1 2 4 8 N/A N/A CO_NESTED CO_GENERATOR CO_NOFREE N/A 16 32 64 N/A TPFLAGS_IS_ABSTRACT N/A 1 20 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 isinstance object N/A types ClassType 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 ismethoddescriptor N/A N/A object N/A N/A N/A Return true if the object is a method descriptor.

    But not if ismethod() or isclass() or isfunction() are true.

    This is new in Python 2.2, and, for example, is true of int.__add__.
    An object passing this test has a __get__ attribute but not a __set__
    attribute, but beyond that the set of attributes varies.  __name__ is
    usually sensible, and __doc__ often is.

    Methods implemented via descriptors that also pass one of the other
    tests return false from the ismethoddescriptor() test, simply because
    the other tests promise more -- you can, e.g., count on having the
    im_func attribute (etc) when an object passes ismethod(). N/A N/A N/A hasattr object __get__ N/A N/A hasattr object __set__ N/A N/A ismethod object N/A N/A isfunction object N/A N/A isclass object N/A isdatadescriptor N/A N/A object N/A N/A N/A Return true if the object is a data descriptor.

    Data descriptors have both a __get__ and a __set__ attribute.  Examples are
    properties (defined in Python) and getsets and members (defined in C).
    Typically, data descriptors will also have __name__ and __doc__ attributes
    (properties, getsets, and members have both of these attributes), but this
    is not guaranteed. N/A N/A N/A hasattr object __set__ N/A hasattr object __get__ N/A N/A N/A hasattr types MemberDescriptorType N/A ismemberdescriptor N/A N/A object N/A N/A N/A Return true if the object is a member descriptor.

        Member descriptors are specialized descriptors defined in extension
        modules. N/A N/A isinstance object N/A types MemberDescriptorType N/A N/A ismemberdescriptor N/A N/A object N/A N/A N/A Return true if the object is a member descriptor.

        Member descriptors are specialized descriptors defined in extension
        modules. N/A False N/A N/A N/A hasattr types GetSetDescriptorType N/A isgetsetdescriptor N/A N/A object N/A N/A N/A Return true if the object is a getset descriptor.

        getset descriptors are specialized descriptors defined in extension
        modules. N/A N/A isinstance object N/A types GetSetDescriptorType N/A N/A isgetsetdescriptor N/A N/A object N/A N/A N/A Return true if the object is a getset descriptor.

        getset descriptors are specialized descriptors defined in extension
        modules. N/A False 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 isgeneratorfunction N/A N/A object N/A N/A N/A Return true if the object is a user-defined generator function.

    Generator function objects provides same attributes as functions.

    See isfunction.__doc__ for attributes listing. N/A N/A N/A N/A isfunction object N/A ismethod object N/A N/A N/A object func_code co_flags CO_GENERATOR N/A N/A True N/A isgenerator N/A N/A object N/A N/A N/A Return true if the object is a generator.

    Generator objects provide these attributes:
        __iter__        defined to support interation over container
        close           raises a new GeneratorExit exception inside the
                        generator to terminate the iteration
        gi_code         code object
        gi_frame        frame object or possibly None once the generator has
                        been exhausted
        gi_running      set to 1 when generator is executing, 0 otherwise
        next            return the next item from the container
        send            resumes the generator and "sends" a value that becomes
                        the result of the current yield-expression
        throw           used to raise an exception inside the generator N/A N/A isinstance object N/A types GeneratorType 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 isbuiltin N/A N/A object N/A N/A N/A Return true if the object is a built-in function or method.

    Built-in functions and methods provide these attributes:
        __doc__         documentation string
        __name__        original name of this function or method
        __self__        instance to which a method is bound, or None N/A N/A isinstance object N/A types BuiltinFunctionType N/A isroutine N/A N/A object N/A N/A N/A Return true if the object is any kind of function or method. N/A N/A N/A isbuiltin object N/A isfunction object N/A ismethod object N/A ismethoddescriptor object N/A isgenerator N/A N/A object N/A N/A N/A Return true if the object is a generator object. N/A N/A isinstance object N/A types GeneratorType N/A isabstract N/A N/A object N/A N/A N/A Return true if the object is an abstract base class (ABC). N/A N/A N/A isinstance object type N/A N/A object __flags__ TPFLAGS_IS_ABSTRACT N/A getmembers N/A N/A object predicate N/A None N/A N/A Return all members of an object as (name, value) pairs sorted by name.
    Optionally, only return members that satisfy a given predicate. N/A results N/A N/A key N/A dir object N/A N/A value N/A getattr object key N/A N/A N/A predicate N/A predicate value N/A N/A N/A N/A results append N/A key value N/A N/A N/A results sort N/A results N/A N/A Attribute N/A namedtuple Attribute name kind defining_class object classify_class_attrs N/A N/A cls N/A N/A N/A Return list of attribute-descriptor tuples.

    For each name in dir(cls), the return list contains a 4-tuple
    with these elements:

        0. The name (a string).

        1. The kind of attribute this is, one of these strings:
               'class method'    created via classmethod()
               'static method'   created via staticmethod()
               'property'        created via property()
               'method'          any other flavor of method
               'data'            not a method

        2. The class which defined this attribute (a class).

        3. The object as obtained directly from the defining class's
           __dict__, not via getattr.  This is especially important for
           data attributes:  C.data is just a data object, but
           C.__dict__['data'] may be a data descriptor with additional
           info, like a __doc__ string.
     N/A mro N/A getmro cls N/A names N/A dir cls N/A result N/A N/A name names N/A N/A N/A name N/A cls __dict__ N/A N/A obj N/A N/A cls __dict__ N/A name N/A N/A obj N/A getattr cls name N/A homecls N/A getattr obj __objclass__ None N/A N/A homecls None N/A N/A base mro N/A N/A N/A name N/A base __dict__ N/A N/A homecls base N/A N/A N/A N/A homecls None N/A name N/A homecls __dict__ N/A N/A obj N/A N/A homecls __dict__ N/A name N/A obj_via_getattr N/A getattr cls name N/A N/A isinstance obj staticmethod N/A N/A kind static method N/A N/A N/A isinstance obj classmethod N/A N/A kind class method N/A N/A N/A isinstance obj property N/A N/A kind property N/A N/A N/A N/A ismethod obj_via_getattr N/A ismethoddescriptor obj_via_getattr N/A N/A kind method N/A N/A kind data N/A N/A N/A result append N/A Attribute name kind homecls obj N/A result N/A _searchbases N/A N/A cls accum N/A N/A N/A N/A cls accum N/A N/A N/A N/A N/A accum append cls N/A base N/A cls __bases__ N/A N/A N/A _searchbases base accum N/A getmro N/A N/A cls N/A N/A N/A Return tuple of base classes (including cls) in method resolution order. N/A N/A hasattr cls __mro__ N/A N/A N/A cls __mro__ N/A N/A result N/A N/A N/A _searchbases cls result N/A N/A tuple result 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 cleandoc doc N/A cleandoc N/A N/A doc N/A N/A N/A Clean up indentation from docstrings.

    Any whitespace that can be uniformly removed from the second line
    onwards is removed. 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 N/A ModuleInfo N/A namedtuple ModuleInfo name suffix mode module_type 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 N/A suffixes N/A map N/A N/A N/A info N/A N/A N/A N/A len N/A info N/A 0 N/A info N/A 0 N/A info N/A 1 N/A info N/A 2 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 ModuleInfo 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 string lower N/A filename N/A -4 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 string lower N/A filename N/A N/A N/A len suffix 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 N/A hasattr N/A getmodule object filename __loader__ N/A N/A filename N/A getabsfile N/A N/A object _filename N/A None N/A N/A Return an absolute path to the source or compiled file for an object.

    The idea is for each object to have a unique origin, so this routine
    normalizes the result as much as possible. N/A N/A _filename None N/A N/A _filename N/A N/A getsourcefile object N/A getfile object N/A N/A N/A N/A os path normcase N/A N/A N/A os path abspath _filename N/A N/A modulesbyfile N/A N/A _filesbymodname N/A getmodule N/A N/A object _filename N/A None N/A N/A Return the module an object was defined in, or None if not found. N/A N/A ismodule object N/A N/A object N/A N/A hasattr object __module__ N/A N/A N/A N/A N/A sys modules get N/A object __module__ N/A N/A N/A _filename None N/A _filename modulesbyfile N/A N/A N/A N/A N/A sys modules get N/A modulesbyfile N/A _filename N/A N/A N/A file N/A getabsfile object _filename N/A N/A N/A TypeError N/A N/A None N/A N/A file modulesbyfile N/A N/A N/A N/A N/A sys modules get N/A modulesbyfile N/A file N/A N/A modname module N/A N/A N/A sys modules items N/A N/A N/A N/A ismodule module N/A hasattr module __file__ N/A N/A f N/A module __file__ N/A N/A f N/A N/A _filesbymodname get modname None N/A N/A N/A N/A _filesbymodname N/A modname f N/A f N/A getabsfile module N/A N/A modulesbyfile N/A f N/A modulesbyfile N/A N/A N/A N/A os path realpath f N/A module __name__ N/A N/A file modulesbyfile N/A N/A N/A N/A N/A sys modules get N/A modulesbyfile N/A file N/A main N/A N/A sys modules N/A __main__ N/A N/A N/A hasattr object __name__ N/A N/A None N/A N/A hasattr main N/A object __name__ N/A N/A mainobject N/A getattr main N/A object __name__ N/A N/A mainobject object N/A N/A main N/A builtin N/A N/A sys modules N/A __builtin__ N/A N/A hasattr builtin N/A object __name__ N/A N/A builtinobject N/A getattr builtin N/A object __name__ N/A N/A builtinobject object N/A N/A builtin 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 module N/A getmodule object file N/A module N/A N/A lines N/A N/A linecache getlines file N/A module __dict__ N/A 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 candidates N/A N/A i N/A range N/A len lines N/A N/A match N/A N/A pat match N/A lines N/A i N/A match N/A N/A N/A N/A N/A lines N/A i N/A 0 c N/A N/A N/A lines i N/A N/A N/A candidates append N/A N/A N/A match group 1 i N/A candidates N/A N/A N/A N/A candidates sort N/A N/A lines N/A N/A candidates N/A 0 N/A 1 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 getcomments N/A N/A object N/A N/A N/A Get lines of comments immediately preceding an object's source code.

    Returns None when source can't be found.
     N/A N/A N/A N/A lines lnum N/A findsource object N/A N/A N/A N/A IOError TypeError N/A N/A None N/A N/A ismodule object N/A N/A start 0 N/A N/A lines N/A N/A N/A lines N/A 0 N/A 2 #! N/A N/A start 1 N/A N/A N/A start N/A len lines N/A N/A N/A string strip N/A lines N/A start N/A # N/A N/A start N/A start 1 N/A N/A N/A start N/A len lines N/A N/A N/A lines N/A start N/A 1 # N/A N/A comments N/A N/A end start N/A N/A N/A end N/A len lines N/A N/A N/A lines N/A end N/A 1 # N/A N/A N/A N/A comments append N/A N/A string expandtabs N/A lines N/A end N/A end N/A end 1 N/A N/A N/A string join comments N/A N/A N/A lnum 0 N/A N/A indent N/A indentsize N/A lines N/A lnum N/A end N/A lnum 1 N/A N/A N/A end 0 N/A N/A N/A N/A string lstrip N/A lines N/A end N/A 1 # N/A N/A indentsize N/A lines N/A end indent N/A N/A comments N/A N/A N/A string lstrip N/A N/A string expandtabs N/A lines N/A end N/A N/A end 0 N/A N/A end N/A end 1 N/A comment N/A N/A string lstrip N/A N/A string expandtabs N/A lines N/A end N/A N/A N/A N/A comment N/A 1 # N/A N/A indentsize N/A lines N/A end indent N/A N/A N/A comments N/A 0 N/A comment N/A end N/A end 1 N/A N/A end 0 N/A N/A N/A comment N/A N/A string lstrip N/A N/A string expandtabs N/A lines N/A end N/A N/A comments N/A N/A N/A string strip N/A comments N/A 0 # N/A N/A N/A comments N/A 1 N/A N/A N/A comments N/A N/A N/A string strip N/A comments N/A -1 # N/A N/A N/A comments N/A -1 N/A N/A N/A N/A string join comments N/A EndOfBlock N/A Exception N/A N/A N/A BlockFinder N/A N/A N/A Provide a tokeneater() method to detect the end of a code block. __init__ N/A N/A self N/A N/A N/A N/A self indent 0 N/A N/A self islambda False N/A N/A self started False N/A N/A self passline False N/A N/A self last 1 N/A tokeneater N/A N/A self type token srow_scol erow_ecol line N/A N/A N/A N/A srow scol srow_scol N/A N/A erow ecol erow_ecol N/A N/A N/A self started N/A N/A N/A token N/A def class lambda N/A N/A N/A token lambda N/A N/A N/A self islambda True N/A N/A self started True N/A N/A self passline True N/A N/A N/A type N/A tokenize NEWLINE N/A N/A N/A self passline False N/A N/A self last srow N/A N/A self islambda N/A N/A EndOfBlock N/A N/A N/A self passline N/A N/A N/A N/A N/A type N/A tokenize INDENT N/A N/A N/A self indent N/A N/A self indent 1 N/A N/A self passline True N/A N/A N/A type N/A tokenize DEDENT N/A N/A N/A self indent N/A N/A self indent 1 N/A N/A N/A self indent 0 N/A N/A EndOfBlock N/A N/A N/A N/A N/A self indent 0 N/A type N/A N/A tokenize COMMENT N/A tokenize NL N/A N/A EndOfBlock N/A N/A getblock N/A N/A lines N/A N/A N/A Extract the block of code at the top of the given list of lines. N/A blockfinder N/A BlockFinder N/A N/A N/A N/A N/A tokenize tokenize N/A N/A iter lines next N/A blockfinder tokeneater N/A N/A N/A N/A EndOfBlock IndentationError N/A N/A N/A N/A lines N/A N/A blockfinder last N/A getsourcelines N/A N/A object N/A N/A N/A Return a list of source lines 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 the lines
    corresponding to the object and the line number indicates where in the
    original source file the first line of code was found.  An IOError is
    raised if the source code cannot be retrieved. N/A N/A lines lnum N/A findsource object N/A N/A ismodule object N/A N/A N/A lines 0 N/A N/A N/A N/A getblock N/A lines N/A lnum N/A lnum 1 N/A getsource N/A N/A object N/A N/A N/A Return the text of the source code for an object.

    The argument may be a module, class, method, function, traceback, frame,
    or code object.  The source code is returned as a single string.  An
    IOError is raised if the source code cannot be retrieved. N/A N/A lines lnum N/A getsourcelines object N/A N/A N/A string join lines N/A walktree N/A N/A classes children parent N/A N/A N/A Recursive helper function for getclasstree(). N/A results N/A N/A N/A N/A classes sort key N/A attrgetter __module__ __name__ N/A c classes N/A N/A N/A N/A results append N/A c N/A c __bases__ N/A N/A c children N/A N/A N/A N/A results append N/A walktree N/A children N/A c children c N/A results N/A getclasstree N/A N/A classes unique N/A 0 N/A N/A Arrange the given list of classes into a hierarchy of nested lists.

    Where a nested list appears, it contains classes derived from the class
    whose entry immediately precedes the list.  Each entry is a 2-tuple
    containing a class and a tuple of its base classes.  If the 'unique'
    argument is true, exactly one entry appears in the returned structure
    for each class in the given list.  Otherwise, classes using multiple
    inheritance and their descendants will appear multiple times. N/A children N/A N/A roots N/A N/A c classes N/A N/A N/A c __bases__ N/A N/A parent N/A c __bases__ N/A N/A N/A N/A parent children N/A N/A N/A children N/A parent N/A N/A N/A N/A N/A children N/A parent append c N/A N/A unique N/A parent classes N/A N/A N/A N/A N/A c roots N/A N/A N/A N/A roots append c N/A parent children N/A N/A N/A parent classes N/A N/A N/A N/A roots append parent N/A N/A walktree roots children None N/A N/A Arguments N/A namedtuple Arguments args varargs keywords 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 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 N/A co co_code N/A N/A op N/A ord N/A N/A co co_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 N/A co co_code N/A step N/A N/A ord N/A N/A co co_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 Arguments args varargs varkw N/A N/A ArgSpec N/A namedtuple ArgSpec args varargs keywords defaults 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 ArgSpec args varargs varkw N/A func func_defaults N/A N/A ArgInfo N/A namedtuple ArgInfo args varargs keywords locals 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 ArgInfo 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 string 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 list tuple 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 string 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 N/A Traceback N/A namedtuple Traceback filename lineno function code_context index 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 Traceback 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 trace N/A N/A context N/A 1 N/A N/A Return a list of records for the stack below the current exception. N/A N/A getinnerframes N/A N/A N/A sys exc_info N/A 2 context N/A