Module TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad decorator_list Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Import alias Import alias alias alias alias alias alias alias Import alias alias alias alias Import alias ImportFrom alias alias alias alias Expr Call AttributeLoad NameLoad attr Str Str NameLoad NameLoad Num Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign NameStore BinOpLShift Num Call NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr BinOpBitOr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Str Assign NameStore BinOpBitOr BinOpBitOr BinOpBitOr NameLoad NameLoad NameLoad NameLoad Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Return BoolOpAnd CompareEq SubscriptLoad NameLoad Slice Num Str UnaryOpNot CompareEqEq SubscriptLoad NameLoad Slice Num Str SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIs NameLoad Call NameLoad NameLoad NameLoad body AugAssignBitOr NameStore AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If Call AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return Call NameLoad NameLoad Call NameLoad Call NameLoad ListLoad Str orelse If CompareIs NameLoad NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Index Str orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMult NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign TupleStore NameStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str If Call NameLoad NameLoad Str body Delete AttributeDel NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad Str body Delete AttributeDel NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq Call AttributeLoad NameLoad attr NameLoad Num body Return CompareEq NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareGtE Call NameLoad NameLoad Num Assign TupleStore NameStore NameStore TupleLoad Num Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Num orelse Return NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If NameLoad body If Call AttributeLoad NameLoad attr NameLoad body AugAssignSub NameStore Call NameLoad NameLoad Delete SubscriptDel NameLoad Index Num orelse Return NameLoad If CompareGt NameLoad NameLoad body Return NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareLt NameLoad Num body Return NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Return BinOpAdd Str NameLoad orelse Return Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryFinally body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr Str body Raise Call NameLoad Str If Call NameLoad NameLoad Str body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Index Num orelse If CompareEq AttributeLoad NameLoad attr Str body If BoolOpAnd CompareGt Call NameLoad AttributeLoad NameLoad attr Num CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num orelse Assign NameStore AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpAdd BinOpAdd Str NameLoad Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num Num NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr Str body AugAssignAdd NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assert UnaryOpNot Call NameLoad NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Str orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Str orelse Assign NameStore BinOpMod Str Call NameLoad AttributeLoad NameLoad attr Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad NameLoad body Return Num Return Call NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareGt NameLoad Num body Assign NameStore Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Slice NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad Assign TupleStore NameStore NameStore TupleLoad Num Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Call AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword BinOpAdd NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str keyword NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Return ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num BinOpAdd BinOpMult Str NameLoad Str NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareGt Call NameLoad NameLoad Num Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num body Delete SubscriptDel NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult Str NameLoad NameLoad BinOpAdd NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Slice NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Dict For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Str Str attr For NameStore NameLoad body If BoolOpOr CompareNotIn SubscriptLoad NameLoad Index Num Str CompareNotIn SubscriptLoad NameLoad Slice Num NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad BinOpAdd NameLoad Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Slice Num Assign SubscriptStore NameLoad Index NameLoad CompareEq SubscriptLoad NameLoad Index Num Str If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareGt Call NameLoad NameLoad Num body Return Call NameLoad NameLoad orelse Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If BoolOpAnd CompareGtE Call NameLoad NameLoad BinOpAdd NameLoad Num CompareNotEq SubscriptLoad NameLoad Index BinOpAdd NameLoad Num Str body Raise Call NameLoad BinOpMod Str TupleLoad BinOpAdd BinOpAdd NameLoad NameLoad Num NameLoad SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad BinOpAdd BinOpAdd NameLoad NameLoad Num NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Call NameLoad NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Str NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Dict orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Dict Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Return CompareIs AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareIsNot Call AttributeLoad NameLoad attr NameLoad NameLoad body Return CompareIs NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad Str body Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Return NameLoad orelse Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Print BinOpMod Str NameLoad If CompareIn Call NameLoad NameLoad NameLoad body Return Assign SubscriptStore NameLoad Index Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Continue Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad If BoolOpAnd BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad Call NameLoad NameLoad Str Dict attr body If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad If UnaryOpNot BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Continue If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad If BoolOpAnd BoolOpOr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse TryExcept body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Str orelse Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot NameLoad body Return NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore Call NameLoad NameLoad Str AttributeLoad NameLoad attr If CompareIn SubscriptLoad NameLoad Slice Num TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Num If Call AttributeLoad NameLoad attr NameLoad body If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Break If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad Str NameLoad Num If CompareIsNot NameLoad NameLoad body If CompareIs NameLoad NameLoad body Return BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore Call NameLoad NameLoad Call NameLoad NameLoad body If Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str Assign NameStore BinOpMult Str Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad If CompareIs NameLoad NameLoad body Assign NameStore CompareIn Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call NameLoad BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr orelse Expr Call NameLoad BinOpAdd BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Assign NameStore Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad BinOpAdd AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameStore Num Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad Num Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BoolOpAnd BinOpBitAnd AttributeLoad NameLoad attr NameLoad CompareGt NameLoad Num Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If NameLoad body AugAssignBitOr AttributeStore NameLoad attr NameLoad orelse AugAssignBitAnd AttributeStore NameLoad attr UnaryOpInvert NameLoad AugAssignAdd NameStore Num If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad TryExcept body Exec Call NameLoad AttributeLoad NameLoad attr NameLoad Str NameLoad Num AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Raise ExceptHandler body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore NameLoad If CompareIs NameLoad NameLoad body If Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Index Num If UnaryOpNot NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad orelse If Call NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If BinOpBitAnd AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpAnd NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareIs NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If CompareIs NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore Num orelse If CompareIs NameLoad NameLoad body If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore Num orelse Assert NameLoad TupleLoad Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr TupleLoad Num Num Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad CompareEq Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad Call AttributeLoad NameLoad attr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareGt AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Num body Return Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryFinally body Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore NameStore Num For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore TupleStore NameStore NameStore NameLoad Assert CompareLtE NameLoad NameLoad AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body If NameLoad body Print TupleLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Print TupleLoad Str NameLoad If NameLoad body Print TupleLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad If NameLoad body Print AttributeLoad NameLoad attr Print TupleLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If NameLoad body Print TupleLoad NameLoad Str Call NameLoad AttributeLoad NameLoad attr Str Print TupleLoad BinOpSub NameLoad NameLoad Str NameLoad Str If NameLoad body Print TupleLoad Str NameLoad Str orelse If NameLoad body Print Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body Print BinOpAdd BinOpAdd Str NameLoad Str Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad NameLoad body Return NameLoad If UnaryOpNot BinOpBitAnd NameLoad NameLoad body If CompareEq TupleLoad NameLoad NameLoad TupleLoad Str Str body Return NameLoad If CompareEq TupleLoad NameLoad NameLoad TupleLoad Str Str body Return NameLoad If UnaryOpNot BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad If CompareEq NameLoad NameLoad body Return NameLoad If BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Return NameLoad If BinOpBitAnd NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If UnaryOpNot BinOpBitAnd NameLoad BinOpBitOr BinOpBitOr NameLoad NameLoad NameLoad body Return NameLoad If BinOpBitAnd NameLoad NameLoad body Return NameLoad Return BoolOpAnd CompareGt Call AttributeLoad NameLoad attr Str Num CompareGt Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore SubscriptLoad Call NameLoad NameLoad Slice Num Assign NameStore Str orelse If BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num Assign NameStore SubscriptLoad Call NameLoad NameLoad Slice Num Assign NameStore Str orelse If BinOpBitAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str orelse Assert Num Str Assign NameStore ListComp BinOpAdd Call AttributeLoad NameLoad attr Str comprehension NameStore NameLoad Return BinOpAdd BinOpMod Str NameLoad Call NameLoad Call AttributeLoad Str attr NameLoad If BoolOpAnd NameLoad NameLoad body Return BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad orelse If NameLoad body Return BinOpMod Str Call NameLoad NameLoad orelse If NameLoad body Return BinOpMod Str Call NameLoad NameLoad orelse Return Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Raise Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Raise Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad body Expr Str Global identifier If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad If NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Num NameLoad NameLoad Call NameLoad body Expr Str Global identifier If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad Num body Expr Str Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list ClassDef bases body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num If BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIsNot NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Print TupleLoad Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Print TupleLoad NameLoad Str NameLoad Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore NameStore Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpAdd NameLoad NameLoad BinOpAdd NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Num FunctionDef arguments args NameParam defaults body Expr Str Global identifier If CompareNotEq BinOpBitAnd NameLoad NameLoad NameLoad body Raise Call NameLoad Str NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot BinOpBitAnd NameLoad NameLoad body AugAssignBitOr NameStore NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad TryFinally body Assign AttributeStore NameLoad attr BinOpMult Str Num Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad finalbody Assign AttributeStore NameLoad attr NameLoad If NameLoad body Raise Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Str orelse Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Return BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr SubscriptLoad NameLoad Slice Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Continue If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If CompareIn SubscriptLoad NameLoad Slice Num TupleLoad Str Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Call NameLoad kwarg body If CompareIs NameLoad NameLoad body Assign NameStore Dict If BoolOpAnd NameLoad UnaryOpNot NameLoad body Raise Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Num Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad Call NameLoad attr NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore ListComp BinOpAdd Str NameLoad comprehension NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num orelse AugAssignAdd NameStore ListComp Call NameLoad NameLoad comprehension NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Slice Num While BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr While BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareEq AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Import alias Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr TryFinally body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Dict If NameLoad body TryExcept body Expr Call NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler body Print SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Index Num orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr BinOpPow AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Dict Str Str Str Str Str Str NameLoad Str Str Str Str Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A N/A N/A basestring N/A N/A N/A NameError N/A N/A basestring str N/A N/A N/A enumerate N/A N/A N/A NameError N/A enumerate N/A N/A seq N/A N/A N/A N/A zip N/A range N/A len seq seq N/A N/A Module doctest -- a framework for running examples in docstrings.

In simplest use, end each module M to be tested with:

def _test():
    import doctest
    doctest.testmod()

if __name__ == "__main__":
    _test()

Then running the module as a script will cause the examples in the
docstrings to get executed and verified:

python M.py

This won't display anything unless an example fails, in which case the
failing example(s) and the cause(s) of the failure(s) are printed to stdout
(why not stderr? because stderr is a lame hack <0.2 wink>), and the final
line of output is "Test failed.".

Run it with the -v switch instead:

python M.py -v

and a detailed report of all examples tried is printed to stdout, along
with assorted summaries at the end.

You can force verbose mode by passing "verbose=True" to testmod, or prohibit
it by passing "verbose=False".  In either of those cases, sys.argv is not
examined by testmod.

There are a variety of other ways to run doctests, including integration
with the unittest framework, and support for running non-Python text
files containing doctests.  There are also many ways to override parts
of doctest's default behaviors.  See the Library Reference Manual for
details.
 N/A __docformat__ reStructuredText en N/A __all__ N/A register_optionflag DONT_ACCEPT_TRUE_FOR_1 DONT_ACCEPT_BLANKLINE NORMALIZE_WHITESPACE ELLIPSIS IGNORE_EXCEPTION_DETAIL COMPARISON_FLAGS REPORT_UDIFF REPORT_CDIFF REPORT_NDIFF REPORT_ONLY_FIRST_FAILURE REPORTING_FLAGS is_private Example DocTest DocTestParser DocTestFinder DocTestRunner OutputChecker DocTestFailure UnexpectedException DebugRunner testmod testfile run_docstring_examples Tester DocTestSuite DocFileSuite set_unittest_reportflags script_from_examples testsource debug_src debug N/A __future__ N/A sys traceback inspect linecache os re types N/A unittest difflib pdb tempfile N/A warnings setuptools.compat StringIO execfile func_code im_func N/A N/A N/A warnings filterwarnings ignore is_private DeprecationWarning __name__ 0 N/A OPTIONFLAGS_BY_NAME N/A register_optionflag N/A N/A name N/A N/A N/A flag N/A 1 N/A len OPTIONFLAGS_BY_NAME N/A N/A OPTIONFLAGS_BY_NAME N/A name flag N/A flag N/A N/A DONT_ACCEPT_TRUE_FOR_1 N/A register_optionflag DONT_ACCEPT_TRUE_FOR_1 N/A DONT_ACCEPT_BLANKLINE N/A register_optionflag DONT_ACCEPT_BLANKLINE N/A NORMALIZE_WHITESPACE N/A register_optionflag NORMALIZE_WHITESPACE N/A ELLIPSIS N/A register_optionflag ELLIPSIS N/A IGNORE_EXCEPTION_DETAIL N/A register_optionflag IGNORE_EXCEPTION_DETAIL N/A COMPARISON_FLAGS N/A N/A N/A N/A DONT_ACCEPT_TRUE_FOR_1 DONT_ACCEPT_BLANKLINE NORMALIZE_WHITESPACE ELLIPSIS IGNORE_EXCEPTION_DETAIL N/A REPORT_UDIFF N/A register_optionflag REPORT_UDIFF N/A REPORT_CDIFF N/A register_optionflag REPORT_CDIFF N/A REPORT_NDIFF N/A register_optionflag REPORT_NDIFF N/A REPORT_ONLY_FIRST_FAILURE N/A register_optionflag REPORT_ONLY_FIRST_FAILURE N/A REPORTING_FLAGS N/A N/A N/A REPORT_UDIFF REPORT_CDIFF REPORT_NDIFF REPORT_ONLY_FIRST_FAILURE N/A BLANKLINE_MARKER <BLANKLINE> N/A ELLIPSIS_MARKER ... is_private N/A N/A prefix base N/A N/A N/A prefix, base -> true iff name prefix + "." + base is "private".

    Prefix may be an empty string, and base does not contain a period.
    Prefix is ignored (although functions you write conforming to this
    protocol may make use of it).
    Return true iff base begins with an (at least one) underscore, but
    does not both begin and end with (at least) two underscores.

    >>> is_private("a.b", "my_func")
    False
    >>> is_private("____", "_my_func")
    True
    >>> is_private("someclass", "__init__")
    False
    >>> is_private("sometypo", "__init_")
    True
    >>> is_private("x.y.z", "_")
    True
    >>> is_private("_x.y.z", "__")
    False
    >>> is_private("", "")  # senseless but consistent
    False
     N/A N/A N/A warnings warn is_private is deprecated; it wasn't useful; examine DocTestFinder.find() lists instead DeprecationWarning stacklevel 2 N/A N/A N/A N/A base N/A 1 _ N/A N/A N/A base N/A 2 __ N/A base N/A -2 N/A _extract_future_flags N/A N/A globs N/A N/A N/A 
    Return the compiler-flags associated with the future features that
    have been imported into the given namespace (globs).
     N/A flags 0 N/A fname N/A __future__ all_feature_names N/A N/A feature N/A N/A globs get fname None N/A N/A feature N/A getattr __future__ fname N/A N/A flags N/A feature compiler_flag N/A flags N/A _normalize_module N/A N/A module depth N/A 2 N/A N/A 
    Return the module specified by `module`.  In particular:
      - If `module` is a module, then return module.
      - If `module` is a string, then import and return the
        module with that name.
      - If `module` is None, then return the calling module.
        The calling module is assumed to be the module of
        the stack frame at the given depth in the call stack.
     N/A N/A N/A inspect ismodule module N/A N/A module N/A N/A N/A isinstance module basestring N/A N/A N/A __import__ module N/A globals N/A locals N/A * N/A N/A N/A module None N/A N/A N/A N/A sys modules N/A N/A N/A N/A N/A sys _getframe depth f_globals N/A __name__ N/A N/A N/A TypeError Expected a module, string, or None N/A _indent N/A N/A s indent N/A 4 N/A N/A 
    Add the given number of space characters to the beginning every
    non-blank line in `s`, and return the result.
     N/A N/A N/A re sub (?m)^(?!$) N/A indent s N/A _exception_traceback N/A N/A exc_info N/A N/A N/A 
    Return a string containing a traceback message for the given
    exc_info tuple (as returned by sys.exc_info()).
     N/A excout N/A StringIO N/A N/A exc_type exc_val exc_tb exc_info N/A N/A N/A traceback print_exception exc_type exc_val exc_tb file excout N/A N/A N/A excout getvalue N/A _SpoofOut N/A StringIO N/A getvalue N/A N/A self N/A N/A N/A result N/A N/A StringIO getvalue self N/A N/A result N/A N/A N/A result endswith N/A N/A result N/A N/A hasattr self softspace N/A N/A N/A self softspace N/A result N/A truncate N/A N/A self size N/A None N/A N/A N/A N/A StringIO truncate self size N/A N/A hasattr self softspace N/A N/A N/A self softspace N/A N/A _ellipsis_match N/A N/A want got N/A N/A N/A 
    Essentially the only subtle case:
    >>> _ellipsis_match('aa...aa', 'aaa')
    False
     N/A N/A N/A N/A want find ELLIPSIS_MARKER -1 N/A N/A N/A want got N/A ws N/A N/A want split ELLIPSIS_MARKER N/A N/A N/A len ws 2 N/A N/A startpos endpos N/A 0 N/A len got N/A w N/A ws N/A 0 N/A w N/A N/A N/A N/A got startswith w N/A N/A startpos N/A len w N/A N/A ws N/A 0 N/A N/A False N/A w N/A ws N/A -1 N/A w N/A N/A N/A N/A got endswith w N/A N/A endpos N/A len w N/A N/A ws N/A -1 N/A N/A False N/A N/A startpos endpos N/A N/A False N/A w ws N/A N/A startpos N/A N/A got find w startpos endpos N/A N/A startpos 0 N/A N/A False N/A startpos N/A len w N/A True N/A _comment_line N/A N/A line N/A N/A N/A Return a commented form of the given line N/A line N/A N/A line rstrip N/A line N/A N/A N/A #  line N/A N/A # N/A _OutputRedirectingPdb N/A N/A pdb Pdb N/A N/A 
    A specialized version of the python debugger that redirects stdout
    to a given stream when interacting with the user.  Stdout is *not*
    redirected when traced code is executed.
     __init__ N/A N/A self out N/A N/A N/A N/A self __out out N/A N/A N/A N/A pdb Pdb __init__ self N/A trace_dispatch N/A N/A self N/A args N/A N/A save_stdout N/A sys stdout N/A N/A sys stdout N/A self __out N/A N/A N/A N/A N/A N/A pdb Pdb trace_dispatch self args N/A N/A N/A sys stdout save_stdout N/A N/A _module_relative_path N/A N/A module path N/A N/A N/A N/A N/A N/A inspect ismodule module N/A N/A N/A TypeError N/A Expected a module: %r module N/A N/A N/A path startswith / N/A N/A N/A ValueError Module-relative files may not have absolute paths N/A N/A hasattr module __file__ N/A N/A basedir N/A N/A N/A N/A os path split N/A module __file__ N/A 0 N/A N/A N/A N/A module __name__ __main__ N/A N/A N/A N/A N/A len N/A sys argv 0 N/A N/A N/A sys argv N/A 0 N/A N/A basedir N/A N/A N/A N/A os path split N/A N/A sys argv N/A 0 N/A 0 N/A N/A basedir N/A os curdir N/A N/A N/A ValueError N/A N/A Can't resolve paths relative to the module  module  (it has no __file__) N/A N/A N/A N/A os path join basedir N/A N/A path split / N/A Example N/A N/A N/A 
    A single doctest example, consisting of source code and expected
    output.  `Example` defines the following attributes:

      - source: A single Python statement, always ending with a newline.
        The constructor adds a newline if needed.

      - want: The expected output from running the source code (either
        from stdout, or a traceback in case of exception).  `want` ends
        with a newline unless it's empty, in which case it's an empty
        string.  The constructor adds a newline if needed.

      - exc_msg: The exception message generated by the example, if
        the example is expected to generate an exception; or `None` if
        it is not expected to generate an exception.  This exception
        message is compared against the return value of
        `traceback.format_exception_only()`.  `exc_msg` ends with a
        newline unless it's `None`.  The constructor adds a newline
        if needed.

      - lineno: The line number within the DocTest string containing
        this Example where the Example begins.  This line number is
        zero-based, with respect to the beginning of the DocTest.

      - indent: The example's indentation in the DocTest string.
        I.e., the number of space characters that preceed the
        example's first prompt.

      - options: A dictionary mapping from option flags to True or
        False, which is used to override default options for this
        example.  Any option flags not contained in this dictionary
        are left at their default value (as specified by the
        DocTestRunner's optionflags).  By default, no options are set.
     __init__ N/A N/A self source want exc_msg lineno indent options N/A None 0 0 None N/A N/A N/A N/A N/A source endswith N/A N/A source N/A N/A want N/A N/A N/A want endswith N/A N/A want N/A N/A N/A exc_msg None N/A N/A N/A exc_msg endswith N/A N/A exc_msg N/A N/A self source source N/A N/A self want want N/A N/A self lineno lineno N/A N/A self indent indent N/A N/A options None N/A N/A options N/A N/A N/A self options options N/A N/A self exc_msg exc_msg N/A N/A DocTest N/A N/A N/A 
    A collection of doctest examples that should be run in a single
    namespace.  Each `DocTest` defines the following attributes:

      - examples: the list of examples.

      - globs: The namespace (aka globals) that the examples should
        be run in.

      - name: A name identifying the DocTest (typically, the name of
        the object whose docstring this DocTest was extracted from).

      - filename: The name of the file that this DocTest was extracted
        from, or `None` if the filename is unknown.

      - lineno: The line number within filename where this DocTest
        begins, or `None` if the line number is unavailable.  This
        line number is zero-based, with respect to the beginning of
        the file.

      - docstring: The string that the examples were extracted from,
        or `None` if the string is unavailable.
     __init__ N/A N/A self examples globs name filename lineno docstring N/A N/A N/A 
        Create a new DocTest containing the given examples.  The
        DocTest's globals are initialized with a copy of `globs`.
         N/A N/A N/A isinstance examples basestring DocTest no longer accepts str; use DocTestParser instead N/A N/A self examples examples N/A N/A self docstring docstring N/A N/A self globs N/A N/A globs copy N/A N/A self name name N/A N/A self filename filename N/A N/A self lineno lineno N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A len N/A self examples 0 N/A N/A examples no examples N/A N/A N/A N/A len N/A self examples 1 N/A N/A examples 1 example N/A N/A examples N/A %d examples N/A len N/A self examples N/A N/A <DocTest %s from %s:%s (%s)> N/A N/A self name N/A self filename N/A self lineno examples N/A __cmp__ N/A N/A self other N/A N/A N/A N/A N/A isinstance other DocTest N/A N/A -1 N/A N/A cmp N/A N/A self name N/A self filename N/A self lineno N/A id self N/A N/A other name N/A other filename N/A other lineno N/A id other N/A N/A DocTestParser N/A N/A N/A 
    A class used to parse strings containing doctest examples.
     N/A _EXAMPLE_RE N/A N/A re compile 
        # Source consists of a PS1 line followed by zero or more PS2 lines.
        (?P<source>
            (?:^(?P<indent> [ ]*) >>>    .*)    # PS1 line
            (?:\n           [ ]*  \.\.\. .*)*)  # PS2 lines
        \n?
        # Want consists of any non-blank lines that do not start with PS1.
        (?P<want> (?:(?![ ]*$)    # Not a blank line
                     (?![ ]*>>>)  # Not a line starting with PS1
                     .*$\n?       # But any other line
                  )*)
         N/A N/A re MULTILINE N/A re VERBOSE N/A _EXCEPTION_RE N/A N/A re compile 
        # Grab the traceback header.  Different versions of Python have
        # said different things on the first traceback line.
        ^(?P<hdr> Traceback\ \(
            (?: most\ recent\ call\ last
            |   innermost\ last
            ) \) :
        )
        \s* $                # toss trailing whitespace on the header.
        (?P<stack> .*?)      # don't blink: absorb stuff until...
        ^ (?P<msg> \w+ .*)   #     a line *starts* with alphanum.
         N/A N/A N/A re VERBOSE N/A re MULTILINE N/A re DOTALL N/A _IS_BLANK_OR_COMMENT N/A N/A N/A re compile ^[ ]*(#.*)?$ match parse N/A N/A self string name N/A <string> N/A N/A 
        Divide the given string into examples and intervening text,
        and return them as a list of alternating Examples and strings.
        Line numbers for the Examples are 0-based.  The optional
        argument `name` is a name identifying this string, and is only
        used for error messages.
         N/A string N/A N/A string expandtabs N/A min_indent N/A N/A self _min_indent string N/A N/A min_indent 0 N/A N/A string N/A N/A join N/A N/A l N/A min_indent N/A l N/A N/A string split N/A output N/A N/A N/A charno lineno N/A 0 0 N/A m N/A N/A N/A self _EXAMPLE_RE finditer string N/A N/A N/A N/A output append N/A string N/A charno N/A N/A m start N/A lineno N/A N/A string count charno N/A N/A m start N/A N/A source options want exc_msg N/A N/A self _parse_example m name lineno N/A N/A N/A N/A self _IS_BLANK_OR_COMMENT source N/A N/A N/A N/A output append N/A Example source want exc_msg lineno lineno indent N/A min_indent N/A len N/A N/A m group indent options options N/A lineno N/A N/A string count N/A N/A m start N/A N/A m end N/A charno N/A N/A m end N/A N/A N/A output append N/A string N/A charno N/A output N/A get_doctest N/A N/A self string globs name filename lineno N/A N/A N/A 
        Extract all doctest examples from the given string, and
        collect them into a `DocTest` object.

        `globs`, `name`, `filename`, and `lineno` are attributes for
        the new `DocTest` object.  See the documentation for `DocTest`
        for more information.
         N/A N/A DocTest N/A N/A self get_examples string name globs name filename lineno string N/A get_examples N/A N/A self string name N/A <string> N/A N/A 
        Extract all doctest examples from the given string, and return
        them as a list of `Example` objects.  Line numbers are
        0-based, because it's most common in doctests that nothing
        interesting appears on the same line as opening triple-quote,
        and so the first interesting line is called "line 1" then.

        The optional argument `name` is a name identifying this
        string, and is only used for error messages.
         N/A N/A x N/A x N/A N/A self parse string name N/A isinstance x Example N/A _parse_example N/A N/A self m name lineno N/A N/A N/A 
        Given a regular expression match from `_EXAMPLE_RE` (`m`),
        return a pair `(source, want)`, where `source` is the matched
        example's source code (with prompts and indentation stripped);
        and `want` is the example's expected output (with indentation
        stripped).

        `name` is the string's name, and `lineno` is the line number
        where the example starts; both are used for error messages.
         N/A indent N/A len N/A N/A m group indent N/A source_lines N/A N/A N/A N/A m group source split N/A N/A N/A self _check_prompt_blank source_lines indent name lineno N/A N/A N/A self _check_prefix N/A source_lines N/A 1 N/A N/A indent . name lineno N/A source N/A N/A join N/A N/A sl N/A N/A indent 4 N/A sl source_lines N/A want N/A N/A m group want N/A want_lines N/A N/A want split N/A N/A N/A N/A len want_lines 1 N/A N/A re match  *$ N/A want_lines N/A -1 N/A N/A N/A want_lines N/A -1 N/A N/A N/A self _check_prefix want_lines N/A indent name N/A lineno N/A len source_lines N/A want N/A N/A join N/A N/A wl N/A indent N/A wl want_lines N/A m N/A N/A N/A self _EXCEPTION_RE match want N/A m N/A N/A exc_msg N/A N/A m group msg N/A N/A exc_msg None N/A options N/A N/A self _find_options source name lineno N/A N/A source options want exc_msg N/A N/A _OPTION_DIRECTIVE_RE N/A N/A re compile #\s*doctest:\s*([^\n\'"]*)$ N/A re MULTILINE _find_options N/A N/A self source name lineno N/A N/A N/A 
        Return a dictionary containing option overrides extracted from
        option directives in the given source string.

        `name` is the string's name, and `lineno` is the line number
        where the example starts; both are used for error messages.
         N/A options N/A N/A m N/A N/A N/A self _OPTION_DIRECTIVE_RE finditer source N/A N/A option_strings N/A N/A N/A N/A N/A N/A m group 1 replace , split N/A option option_strings N/A N/A N/A N/A N/A option N/A 0 +- N/A N/A option N/A 1 OPTIONFLAGS_BY_NAME N/A N/A N/A ValueError N/A line %r of the doctest for %s has an invalid option: %r N/A N/A lineno 1 name option N/A flag N/A OPTIONFLAGS_BY_NAME N/A N/A option N/A 1 N/A N/A options N/A flag N/A N/A option N/A 0 + N/A N/A options N/A N/A self _IS_BLANK_OR_COMMENT source N/A N/A N/A ValueError N/A line %r of the doctest for %s has an option directive on a line with no example: %r N/A lineno name source N/A options N/A N/A _INDENT_RE N/A N/A re compile ^([ ]*)(?=\S) N/A re MULTILINE _min_indent N/A N/A self s N/A N/A N/A Return the minimum indentation of any non-blank line in `s` N/A indents N/A N/A len indent N/A indent N/A N/A N/A self _INDENT_RE findall s N/A N/A N/A len indents 0 N/A N/A N/A min indents N/A N/A 0 N/A _check_prompt_blank N/A N/A self lines indent name lineno N/A N/A N/A 
        Given the lines of a source string (including prompts and
        leading indentation), check to make sure that every prompt is
        followed by a space character.  If any line is not followed by
        a space character, then raise ValueError.
         N/A N/A i line N/A enumerate lines N/A N/A N/A N/A N/A len line N/A indent 4 N/A N/A line N/A N/A indent 3 N/A N/A N/A ValueError N/A line %r of the docstring for %s lacks blank after %s: %r N/A N/A N/A lineno i 1 name N/A line N/A indent N/A indent 3 line N/A _check_prefix N/A N/A self lines prefix name lineno N/A N/A N/A 
        Check that every line in the given list starts with the given
        prefix; if any line does not, then raise a ValueError.
         N/A N/A i line N/A enumerate lines N/A N/A N/A line N/A N/A N/A line startswith prefix N/A N/A N/A ValueError N/A line %r of the docstring for %s has inconsistent leading whitespace: %r N/A N/A N/A lineno i 1 name line N/A N/A DocTestFinder N/A N/A N/A 
    A class used to extract the DocTests that are relevant to a given
    object, from its docstring and the docstrings of its contained
    objects.  Doctests can currently be extracted from the following
    object types: modules, functions, classes, methods, staticmethods,
    classmethods, and properties.
     __init__ N/A N/A self verbose parser recurse _namefilter exclude_empty N/A False N/A DocTestParser True None True N/A N/A 
        Create a new doctest finder.

        The optional argument `parser` specifies a class or
        function that should be used to create new DocTest objects (or
        objects that implement the same interface as DocTest).  The
        signature for this factory function should match the signature
        of the DocTest constructor.

        If the optional argument `recurse` is false, then `find` will
        only examine the given object, and not any contained objects.

        If the optional argument `exclude_empty` is false, then `find`
        will include tests for objects with empty docstrings.
         N/A N/A self _parser parser N/A N/A self _verbose verbose N/A N/A self _recurse recurse N/A N/A self _exclude_empty exclude_empty N/A N/A self _namefilter _namefilter N/A find N/A N/A self obj name module globs extraglobs N/A None None None None N/A N/A 
        Return a list of the DocTests that are defined by the given
        object's docstring, or by any of its contained objects'
        docstrings.

        The optional parameter `module` is the module that contains
        the given object.  If the module is not specified or is None, then
        the test finder will attempt to automatically determine the
        correct module.  The object's module is used:

            - As a default namespace, if `globs` is not specified.
            - To prevent the DocTestFinder from extracting DocTests
              from objects that are imported from other modules.
            - To find the name of the file containing the object.
            - To help find the line number of the object within its
              file.

        Contained objects whose module does not match `module` are ignored.

        If `module` is False, no attempt to find the module will be made.
        This is obscure, of use mostly in tests:  if `module` is False, or
        is None but cannot be found automatically, then all objects are
        considered to belong to the (non-existent) module, so all contained
        objects will (recursively) be searched for doctests.

        The globals for each DocTest is formed by combining `globs`
        and `extraglobs` (bindings in `extraglobs` override bindings
        in `globs`).  A new copy of the globals dictionary is created
        for each DocTest.  If `globs` is not specified, then it
        defaults to the module's `__dict__`, if specified, or {}
        otherwise.  If `extraglobs` is not specified, then it defaults
        to {}.

         N/A N/A name None N/A N/A name N/A getattr obj __name__ None N/A N/A name None N/A N/A N/A ValueError N/A DocTestFinder.find: name must be given when obj.__name__ doesn't exist: %r N/A N/A type obj N/A N/A module False N/A N/A module None N/A N/A N/A module None N/A N/A module N/A N/A inspect getmodule obj N/A N/A N/A file N/A N/A N/A inspect getsourcefile obj N/A N/A inspect getfile obj N/A source_lines N/A N/A linecache getlines file N/A N/A source_lines N/A N/A source_lines None N/A N/A N/A TypeError N/A N/A source_lines None N/A N/A globs None N/A N/A N/A module None N/A N/A globs N/A N/A N/A globs N/A N/A N/A module __dict__ copy N/A N/A globs N/A N/A globs copy N/A N/A extraglobs None N/A N/A N/A N/A globs update extraglobs N/A tests N/A N/A N/A N/A self _find tests obj name module source_lines globs N/A N/A tests N/A _filter N/A N/A self obj prefix base N/A N/A N/A 
        Return true if the given object should not be examined.
         N/A N/A N/A N/A self _namefilter None N/A N/A self _namefilter prefix base N/A _from_module N/A N/A self module object N/A N/A N/A 
        Return true if the given object is defined in the given
        module.
         N/A N/A module None N/A N/A True N/A N/A N/A N/A inspect isfunction object N/A N/A N/A N/A module __dict__ N/A func_globals object N/A N/A N/A N/A inspect isclass object N/A N/A N/A N/A module __name__ N/A object __module__ N/A N/A N/A N/A N/A inspect getmodule object None N/A N/A N/A module N/A N/A inspect getmodule object N/A N/A N/A hasattr object __module__ N/A N/A N/A N/A module __name__ N/A object __module__ N/A N/A N/A isinstance object property N/A N/A True N/A N/A N/A ValueError object must be a class or function N/A _find N/A N/A self tests obj name module source_lines globs seen N/A N/A N/A 
        Find tests for the given object and any contained objects, and
        add them to `tests`.
         N/A N/A self _verbose N/A N/A N/A Finding tests in %s name N/A N/A N/A id obj seen N/A N/A N/A N/A seen N/A N/A id obj 1 N/A test N/A N/A self _get_test obj name module globs source_lines N/A N/A test None N/A N/A N/A N/A tests append test N/A N/A N/A N/A inspect ismodule obj N/A self _recurse N/A N/A N/A valname val N/A N/A N/A obj __dict__ items N/A N/A N/A N/A self _filter val name valname N/A N/A N/A valname N/A %s.%s N/A name valname N/A N/A N/A N/A N/A inspect isfunction val N/A N/A inspect isclass val N/A N/A self _from_module module val N/A N/A N/A N/A self _find tests val valname module source_lines globs seen N/A N/A N/A N/A inspect ismodule obj N/A self _recurse N/A N/A N/A valname val N/A N/A N/A getattr obj __test__ N/A items N/A N/A N/A N/A isinstance valname basestring N/A N/A N/A ValueError N/A DocTestFinder.find: __test__ keys must be strings: %r N/A N/A type valname N/A N/A N/A N/A N/A inspect isfunction val N/A N/A inspect isclass val N/A N/A inspect ismethod val N/A N/A inspect ismodule val N/A isinstance val basestring N/A N/A N/A ValueError N/A DocTestFinder.find: __test__ values must be strings, functions, methods, classes, or modules: %r N/A N/A type val N/A valname N/A %s.__test__.%s N/A name valname N/A N/A N/A self _find tests val valname module source_lines globs seen N/A N/A N/A N/A inspect isclass obj N/A self _recurse N/A N/A N/A valname val N/A N/A N/A obj __dict__ items N/A N/A N/A N/A self _filter val name valname N/A N/A N/A N/A isinstance val staticmethod N/A N/A val N/A getattr obj valname N/A N/A isinstance val classmethod N/A N/A val N/A im_func N/A getattr obj valname N/A N/A N/A N/A N/A inspect isfunction val N/A N/A inspect isclass val N/A isinstance val property N/A N/A self _from_module module val N/A N/A valname N/A %s.%s N/A name valname N/A N/A N/A self _find tests val valname module source_lines globs seen N/A _get_test N/A N/A self obj name module globs source_lines N/A N/A N/A 
        Return a DocTest for the given object, if it defines a docstring;
        otherwise, return None.
         N/A N/A isinstance obj basestring N/A N/A docstring obj N/A N/A N/A N/A N/A N/A obj __doc__ None N/A N/A docstring N/A N/A docstring N/A obj __doc__ N/A N/A N/A isinstance docstring basestring N/A N/A docstring N/A str docstring N/A N/A N/A N/A TypeError AttributeError N/A N/A docstring N/A lineno N/A N/A self _find_lineno obj source_lines N/A N/A N/A self _exclude_empty N/A docstring N/A N/A None N/A N/A module None N/A N/A filename None N/A N/A filename N/A getattr module __file__ N/A module __name__ N/A N/A N/A filename N/A -4 N/A .pyc .pyo N/A N/A filename N/A filename N/A -1 N/A N/A N/A N/A self _parser get_doctest docstring globs name filename lineno N/A _find_lineno N/A N/A self obj source_lines N/A N/A N/A 
        Return a line number of the given object's docstring.  Note:
        this method assumes that the object has a docstring.
         N/A lineno None N/A N/A N/A inspect ismodule obj N/A N/A lineno 0 N/A N/A N/A inspect isclass obj N/A N/A N/A source_lines None N/A N/A None N/A pat N/A N/A re compile N/A ^\s*class\s*%s\b N/A getattr obj __name__ - N/A N/A i line N/A enumerate source_lines N/A N/A N/A N/A pat match line N/A N/A lineno i N/A N/A N/A N/A inspect ismethod obj N/A N/A obj N/A im_func obj N/A N/A N/A inspect isfunction obj N/A N/A obj N/A func_code obj N/A N/A N/A inspect istraceback obj N/A N/A obj N/A obj tb_frame N/A N/A N/A inspect isframe obj N/A N/A obj N/A obj f_code N/A N/A N/A inspect iscode obj N/A N/A lineno N/A N/A getattr obj co_firstlineno None 1 N/A N/A lineno None N/A N/A N/A source_lines None N/A N/A N/A lineno 1 N/A pat N/A N/A re compile (^|.*:)\s*\w*("|') N/A lineno N/A range lineno N/A len source_lines N/A N/A N/A N/A pat match N/A source_lines N/A lineno N/A N/A lineno N/A None N/A N/A DocTestRunner N/A N/A N/A 
    A class used to run DocTest test cases, and accumulate statistics.
    The `run` method is used to process a single DocTest case.  It
    returns a tuple `(f, t)`, where `t` is the number of test cases
    tried, and `f` is the number of test cases that failed.

        >>> tests = DocTestFinder().find(_TestClass)
        >>> runner = DocTestRunner(verbose=False)
        >>> for test in tests:
        ...     print runner.run(test)
        (0, 2)
        (0, 1)
        (0, 2)
        (0, 2)

    The `summarize` method prints a summary of all the test cases that
    have been run by the runner, and returns an aggregated `(f, t)`
    tuple:

        >>> runner.summarize(verbose=1)
        4 items passed all tests:
           2 tests in _TestClass
           2 tests in _TestClass.__init__
           2 tests in _TestClass.get
           1 tests in _TestClass.square
        7 tests in 4 items.
        7 passed and 0 failed.
        Test passed.
        (0, 7)

    The aggregated number of tried examples and failed examples is
    also available via the `tries` and `failures` attributes:

        >>> runner.tries
        7
        >>> runner.failures
        0

    The comparison between expected outputs and actual outputs is done
    by an `OutputChecker`.  This comparison may be customized with a
    number of option flags; see the documentation for `testmod` for
    more information.  If the option flags are insufficient, then the
    comparison may also be customized by passing a subclass of
    `OutputChecker` to the constructor.

    The test runner's display output can be controlled in two ways.
    First, an output function (`out) can be passed to
    `TestRunner.run`; this function will be called with strings that
    should be displayed.  It defaults to `sys.stdout.write`.  If
    capturing the output is not sufficient, then the display output
    can be also customized by subclassing DocTestRunner, and
    overriding the methods `report_start`, `report_success`,
    `report_unexpected_exception`, and `report_failure`.
     N/A DIVIDER N/A * 70 __init__ N/A N/A self checker verbose optionflags N/A None None 0 N/A N/A 
        Create a new test runner.

        Optional keyword arg `checker` is the `OutputChecker` that
        should be used to compare the expected outputs and actual
        outputs of doctest examples.

        Optional keyword arg 'verbose' prints lots of stuff if true,
        only failures if false; by default, it's true iff '-v' is in
        sys.argv.

        Optional argument `optionflags` can be used to control how the
        test runner compares expected output to actual output, and how
        it displays failures.  See the documentation for `testmod` for
        more information.
         N/A N/A self _checker N/A checker N/A OutputChecker N/A N/A verbose None N/A N/A verbose N/A -v N/A sys argv N/A N/A self _verbose verbose N/A N/A self optionflags optionflags N/A N/A self original_optionflags optionflags N/A N/A self tries 0 N/A N/A self failures 0 N/A N/A self _name2ft N/A N/A N/A self _fakeout N/A _SpoofOut N/A report_start N/A N/A self out test example N/A N/A N/A 
        Report that the test runner is about to process the given
        example.  (Only displays a message if verbose=True)
         N/A N/A self _verbose N/A N/A N/A example want N/A N/A N/A out N/A N/A N/A Trying:
 N/A _indent N/A example source Expecting:
 N/A _indent N/A example want N/A N/A N/A out N/A N/A Trying:
 N/A _indent N/A example source Expecting nothing
 N/A report_success N/A N/A self out test example got N/A N/A N/A 
        Report that the given example ran successfully.  (Only
        displays a message if verbose=True)
         N/A N/A self _verbose N/A N/A N/A out ok
 N/A report_failure N/A N/A self out test example got N/A N/A N/A 
        Report that the given example failed.
         N/A N/A out N/A N/A N/A self _failure_header test example N/A N/A N/A self _checker output_difference example got N/A self optionflags N/A report_unexpected_exception N/A N/A self out test example exc_info N/A N/A N/A 
        Report that the given example raised an unexpected exception.
         N/A N/A out N/A N/A N/A N/A self _failure_header test example Exception raised:
 N/A _indent N/A _exception_traceback exc_info N/A _failure_header N/A N/A self test example N/A N/A N/A out N/A N/A self DIVIDER N/A N/A test filename N/A N/A N/A N/A N/A test lineno None N/A N/A example lineno None N/A N/A lineno N/A N/A N/A test lineno N/A example lineno 1 N/A N/A lineno ? N/A N/A N/A out append N/A File "%s", line %s, in %s N/A N/A test filename lineno N/A test name N/A N/A N/A N/A out append N/A Line %s, in %s N/A N/A N/A example lineno 1 N/A test name N/A N/A N/A out append Failed example: N/A source N/A example source N/A N/A N/A out append N/A _indent source N/A N/A N/A join out N/A __run N/A N/A self test compileflags out N/A N/A N/A 
        Run the examples in `test`.  Write the outcome of each example
        with one of the `DocTestRunner.report_*` methods, using the
        writer function `out`.  `compileflags` is the set of compiler
        flags that should be used to execute examples.  Return a tuple
        `(f, t)`, where `t` is the number of examples tried, and `f`
        is the number of examples that failed.  The examples are run
        in the namespace `test.globs`.
         N/A failures tries 0 N/A original_optionflags N/A self optionflags N/A N/A SUCCESS FAILURE BOOM N/A range 3 N/A check N/A N/A self _checker check_output N/A N/A examplenum example N/A enumerate N/A test examples N/A N/A quiet N/A N/A N/A self optionflags REPORT_ONLY_FIRST_FAILURE N/A failures 0 N/A N/A self optionflags original_optionflags N/A N/A example options N/A N/A N/A optionflag val N/A N/A N/A example options items N/A N/A val N/A N/A N/A self optionflags optionflag N/A N/A N/A self optionflags N/A optionflag N/A tries 1 N/A N/A quiet N/A N/A N/A N/A self report_start out test example N/A filename N/A <doctest %s[%d]> N/A N/A test name examplenum N/A N/A N/A N/A compile N/A example source filename single compileflags 1 N/A test globs N/A N/A N/A N/A self debugger set_continue N/A exception None N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A N/A exception N/A N/A sys exc_info N/A N/A N/A N/A self debugger set_continue N/A got N/A N/A N/A self _fakeout getvalue N/A N/A N/A N/A self _fakeout truncate 0 N/A outcome FAILURE N/A N/A exception None N/A N/A N/A check N/A example want got N/A self optionflags N/A N/A outcome SUCCESS N/A N/A exc_info N/A N/A sys exc_info N/A exc_msg N/A N/A N/A traceback format_exception_only N/A exc_info N/A 2 N/A -1 N/A N/A quiet N/A N/A got N/A _exception_traceback exc_info N/A N/A N/A example exc_msg None N/A N/A outcome BOOM N/A N/A N/A check N/A example exc_msg exc_msg N/A self optionflags N/A N/A outcome SUCCESS N/A N/A N/A N/A self optionflags IGNORE_EXCEPTION_DETAIL N/A N/A m1 N/A N/A re match [^:]*: N/A example exc_msg N/A m2 N/A N/A re match [^:]*: exc_msg N/A N/A m1 m2 N/A check N/A N/A m1 group 0 N/A N/A m2 group 0 N/A self optionflags N/A N/A outcome SUCCESS N/A N/A outcome SUCCESS N/A N/A N/A quiet N/A N/A N/A N/A self report_success out test example got N/A N/A N/A outcome FAILURE N/A N/A N/A quiet N/A N/A N/A N/A self report_failure out test example got N/A failures 1 N/A N/A N/A outcome BOOM N/A N/A N/A quiet N/A N/A N/A N/A self report_unexpected_exception out test example exc_info N/A failures 1 N/A N/A False N/A unknown outcome outcome N/A N/A self optionflags original_optionflags N/A N/A N/A self __record_outcome test failures tries N/A N/A failures tries N/A __record_outcome N/A N/A self test f t N/A N/A N/A 
        Record the fact that the given DocTest (`test`) generated `f`
        failures out of `t` tried examples.
         N/A N/A f2 t2 N/A N/A N/A self _name2ft get N/A test name N/A 0 0 N/A N/A N/A self _name2ft N/A N/A test name N/A N/A f f2 N/A t t2 N/A N/A self failures f N/A N/A self tries t N/A N/A __LINECACHE_FILENAME_RE N/A N/A re compile <doctest (?P<name>[\w\.]+)\[(?P<examplenum>\d+)\]>$ __patched_linecache_getlines N/A N/A self filename module_globals N/A None N/A N/A m N/A N/A N/A self __LINECACHE_FILENAME_RE match filename N/A N/A m N/A N/A N/A m group name N/A N/A self test name N/A N/A example N/A N/A N/A self test examples N/A N/A int N/A N/A m group examplenum N/A N/A N/A N/A example source splitlines True N/A N/A N/A N/A N/A func_code N/A self save_linecache_getlines co_argcount 1 N/A N/A N/A N/A self save_linecache_getlines filename module_globals N/A N/A N/A N/A self save_linecache_getlines filename N/A run N/A N/A self test compileflags out clear_globs N/A None None True N/A N/A 
        Run the examples in `test`, and display the results using the
        writer function `out`.

        The examples are run in the namespace `test.globs`.  If
        `clear_globs` is true (the default), then this namespace will
        be cleared after the test runs, to help with garbage
        collection.  If you would like to examine the namespace after
        the test completes, then use `clear_globs=False`.

        `compileflags` gives the set of flags that should be used by
        the Python compiler when running the examples.  If not
        specified, then it will default to the set of future-import
        flags that apply to `globs`.

        The output of each example is checked using
        `DocTestRunner.check_output`, and the results are formatted by
        the `DocTestRunner.report_*` methods.
         N/A N/A self test test N/A N/A compileflags None N/A N/A compileflags N/A _extract_future_flags N/A test globs N/A save_stdout N/A sys stdout N/A N/A out None N/A N/A out N/A save_stdout write N/A N/A sys stdout N/A self _fakeout N/A save_set_trace N/A pdb set_trace N/A N/A self debugger N/A _OutputRedirectingPdb save_stdout N/A N/A N/A N/A self debugger reset N/A N/A pdb set_trace N/A N/A self debugger set_trace N/A N/A self save_linecache_getlines N/A linecache getlines N/A N/A linecache getlines N/A self __patched_linecache_getlines N/A N/A N/A N/A N/A self __run test compileflags out N/A N/A N/A sys stdout save_stdout N/A N/A pdb set_trace save_set_trace N/A N/A linecache getlines N/A self save_linecache_getlines N/A clear_globs N/A N/A N/A N/A N/A test globs clear N/A summarize N/A N/A self verbose N/A None N/A N/A 
        Print a summary of all the test cases that have been run by
        this DocTestRunner, and return a tuple `(f, t)`, where `f` is
        the total number of failed examples, and `t` is the total
        number of tried examples.

        The optional `verbose` argument controls how detailed the
        summary is.  If the verbosity is not specified, then the
        DocTestRunner's verbosity is used.
         N/A N/A verbose None N/A N/A verbose N/A self _verbose N/A notests N/A N/A passed N/A N/A failed N/A N/A totalt totalf 0 N/A x N/A N/A N/A self _name2ft items N/A N/A N/A name N/A f t x N/A N/A f t N/A totalt t N/A totalf f N/A N/A t 0 N/A N/A N/A N/A notests append name N/A N/A N/A f 0 N/A N/A N/A N/A passed append N/A name t N/A N/A N/A N/A failed append x N/A verbose N/A N/A notests N/A N/A N/A N/A len notests items had no tests: N/A N/A N/A notests sort N/A thing notests N/A N/A N/A thing N/A passed N/A N/A N/A N/A len passed items passed all tests: N/A N/A N/A passed sort N/A N/A thing count passed N/A N/A N/A  %3d tests in %s N/A count thing N/A failed N/A N/A N/A self DIVIDER N/A N/A N/A len failed items had failures: N/A N/A N/A failed sort N/A N/A thing N/A f t failed N/A N/A N/A  %3d of %3d in %s N/A f t thing N/A verbose N/A N/A N/A totalt tests in N/A len N/A self _name2ft items. N/A N/A N/A totalt totalf passed and totalf failed. N/A totalf N/A N/A N/A ***Test Failed*** totalf failures. N/A N/A verbose N/A N/A Test passed. N/A N/A totalf totalt N/A merge N/A N/A self other N/A N/A N/A d N/A self _name2ft N/A N/A name N/A f t N/A N/A N/A other _name2ft items N/A N/A N/A name d N/A N/A N/A N/A *** DocTestRunner.merge: ' name ' in both testers; summing outcomes. N/A N/A f2 t2 N/A d N/A name N/A f N/A f f2 N/A t N/A t t2 N/A N/A d N/A name N/A f t N/A N/A OutputChecker N/A N/A N/A 
    A class used to check the whether the actual output from a doctest
    example matches the expected output.  `OutputChecker` defines two
    methods: `check_output`, which compares a given pair of outputs,
    and returns true if they match; and `output_difference`, which
    returns a string describing the differences between two outputs.
     check_output N/A N/A self want got optionflags N/A N/A N/A 
        Return True iff the actual output from an example (`got`)
        matches the expected output (`want`).  These strings are
        always considered to match if they are identical; but
        depending on what option flags the test runner is using,
        several non-exact match types are also possible.  See the
        documentation for `TestRunner` for more information about
        option flags.
         N/A N/A got want N/A N/A True N/A N/A N/A optionflags DONT_ACCEPT_TRUE_FOR_1 N/A N/A N/A N/A got want N/A True
 1
 N/A N/A True N/A N/A N/A got want N/A False
 0
 N/A N/A True N/A N/A N/A optionflags DONT_ACCEPT_BLANKLINE N/A N/A want N/A N/A re sub N/A (?m)^%s\s*?$ N/A N/A re escape BLANKLINE_MARKER want N/A got N/A N/A re sub (?m)^\s*?$ got N/A N/A got want N/A N/A True N/A N/A optionflags NORMALIZE_WHITESPACE N/A N/A got N/A N/A join N/A N/A got split N/A want N/A N/A join N/A N/A want split N/A N/A got want N/A N/A True N/A N/A optionflags ELLIPSIS N/A N/A N/A _ellipsis_match want got N/A N/A True N/A False N/A _do_a_fancy_diff N/A N/A self want got optionflags N/A N/A N/A N/A N/A optionflags N/A N/A REPORT_UDIFF REPORT_CDIFF REPORT_NDIFF N/A N/A False N/A N/A optionflags REPORT_NDIFF N/A N/A True N/A N/A N/A N/A N/A want count 2 N/A N/A N/A got count 2 N/A output_difference N/A N/A self example got optionflags N/A N/A N/A 
        Return a string describing the differences between the
        expected output for a given example (`example`) and the actual
        output (`got`).  `optionflags` is the set of option flags used
        to compare `want` and `got`.
         N/A want N/A example want N/A N/A N/A optionflags DONT_ACCEPT_BLANKLINE N/A N/A got N/A N/A re sub (?m)^[ ]*(?=
) BLANKLINE_MARKER got N/A N/A N/A self _do_a_fancy_diff want got optionflags N/A N/A want_lines N/A N/A want splitlines True N/A got_lines N/A N/A got splitlines True N/A N/A optionflags REPORT_UDIFF N/A N/A diff N/A N/A difflib unified_diff want_lines got_lines n 2 N/A diff N/A N/A list diff N/A 2 N/A kind unified diff with -expected +actual N/A N/A N/A optionflags REPORT_CDIFF N/A N/A diff N/A N/A difflib context_diff want_lines got_lines n 2 N/A diff N/A N/A list diff N/A 2 N/A kind context diff with expected followed by actual N/A N/A N/A optionflags REPORT_NDIFF N/A N/A engine N/A N/A difflib Differ charjunk N/A difflib IS_CHARACTER_JUNK N/A diff N/A list N/A N/A engine compare want_lines got_lines N/A kind ndiff with -expected +actual N/A N/A 0 Bad diff option N/A diff N/A N/A N/A N/A line rstrip N/A line diff N/A N/A N/A Differences (%s):
 kind N/A _indent N/A N/A join diff N/A N/A want got N/A N/A N/A Expected:
%sGot:
%s N/A N/A _indent want N/A _indent got N/A N/A want N/A N/A N/A Expected:
%sGot nothing
 N/A _indent want N/A N/A got N/A N/A N/A Expected nothing
Got:
%s N/A _indent got N/A N/A Expected nothing
Got nothing
 N/A N/A DocTestFailure N/A Exception N/A N/A A DocTest example has failed in debugging mode.

    The exception instance has variables:

    - test: the DocTest object being run

    - excample: the Example object that failed

    - got: the actual output
     __init__ N/A N/A self test example got N/A N/A N/A N/A self test test N/A N/A self example example N/A N/A self got got N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self test N/A N/A UnexpectedException N/A Exception N/A N/A A DocTest example has encountered an unexpected exception

    The exception instance has variables:

    - test: the DocTest object being run

    - excample: the Example object that failed

    - exc_info: the exception info
     __init__ N/A N/A self test example exc_info N/A N/A N/A N/A self test test N/A N/A self example example N/A N/A self exc_info exc_info N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self test N/A N/A DebugRunner N/A DocTestRunner N/A N/A Run doc tests but raise an exception as soon as there is a failure.

       If an unexpected exception occurs, an UnexpectedException is raised.
       It contains the test, the example, and the original exception:

         >>> runner = DebugRunner(verbose=False)
         >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42',
         ...                                    {}, 'foo', 'foo.py', 0)
         >>> try:
         ...     runner.run(test)
         ... except UnexpectedException, failure:
         ...     pass

         >>> failure.test is test
         True

         >>> failure.example.want
         '42\n'

         >>> exc_info = failure.exc_info
         >>> raise exc_info[0], exc_info[1], exc_info[2]
         Traceback (most recent call last):
         ...
         KeyError

       We wrap the original exception to give the calling application
       access to the test and example information.

       If the output doesn't match, then a DocTestFailure is raised:

         >>> test = DocTestParser().get_doctest('''
         ...      >>> x = 1
         ...      >>> x
         ...      2
         ...      ''', {}, 'foo', 'foo.py', 0)

         >>> try:
         ...    runner.run(test)
         ... except DocTestFailure, failure:
         ...    pass

       DocTestFailure objects provide access to the test:

         >>> failure.test is test
         True

       As well as to the example:

         >>> failure.example.want
         '2\n'

       and the actual output:

         >>> failure.got
         '1\n'

       If a failure or error occurs, the globals are left intact:

         >>> del test.globs['__builtins__']
         >>> test.globs
         {'x': 1}

         >>> test = DocTestParser().get_doctest('''
         ...      >>> x = 2
         ...      >>> raise KeyError
         ...      ''', {}, 'foo', 'foo.py', 0)

         >>> runner.run(test)
         Traceback (most recent call last):
         ...
         UnexpectedException: <DocTest foo from foo.py:0 (2 examples)>

         >>> del test.globs['__builtins__']
         >>> test.globs
         {'x': 2}

       But the globals are cleared if there is no error:

         >>> test = DocTestParser().get_doctest('''
         ...      >>> x = 2
         ...      ''', {}, 'foo', 'foo.py', 0)

         >>> runner.run(test)
         (0, 1)

         >>> test.globs
         {}

        run N/A N/A self test compileflags out clear_globs N/A None None True N/A N/A r N/A N/A DocTestRunner run self test compileflags out False N/A clear_globs N/A N/A N/A N/A N/A test globs clear N/A r N/A report_unexpected_exception N/A N/A self out test example exc_info N/A N/A N/A N/A UnexpectedException test example exc_info N/A report_failure N/A N/A self out test example got N/A N/A N/A N/A DocTestFailure test example got N/A N/A N/A master None testmod N/A N/A m name globs verbose isprivate report optionflags extraglobs raise_on_error exclude_empty N/A None None None None None True 0 None False False N/A N/A m=None, name=None, globs=None, verbose=None, isprivate=None,
       report=True, optionflags=0, extraglobs=None, raise_on_error=False,
       exclude_empty=False

    Test examples in docstrings in functions and classes reachable
    from module m (or the current module if m is not supplied), starting
    with m.__doc__.  Unless isprivate is specified, private names
    are not skipped.

    Also test examples reachable from dict m.__test__ if it exists and is
    not None.  m.__test__ maps names to functions, classes and strings;
    function and class docstrings are tested even if the name is private;
    strings are tested directly, as if they were docstrings.

    Return (#failures, #tests).

    See doctest.__doc__ for an overview.

    Optional keyword arg "name" gives the name of the module; by default
    use m.__name__.

    Optional keyword arg "globs" gives a dict to be used as the globals
    when executing examples; by default, use m.__dict__.  A copy of this
    dict is actually used for each docstring, so that each docstring's
    examples start with a clean slate.

    Optional keyword arg "extraglobs" gives a dictionary that should be
    merged into the globals that are used to execute examples.  By
    default, no extra globals are used.  This is new in 2.4.

    Optional keyword arg "verbose" prints lots of stuff if true, prints
    only failures if false; by default, it's true iff "-v" is in sys.argv.

    Optional keyword arg "report" prints a summary at the end when true,
    else prints nothing at the end.  In verbose mode, the summary is
    detailed, else very brief (in fact, empty if all tests passed).

    Optional keyword arg "optionflags" or's together module constants,
    and defaults to 0.  This is new in 2.3.  Possible values (see the
    docs for details):

        DONT_ACCEPT_TRUE_FOR_1
        DONT_ACCEPT_BLANKLINE
        NORMALIZE_WHITESPACE
        ELLIPSIS
        IGNORE_EXCEPTION_DETAIL
        REPORT_UDIFF
        REPORT_CDIFF
        REPORT_NDIFF
        REPORT_ONLY_FIRST_FAILURE

    Optional keyword arg "raise_on_error" raises an exception on the
    first unexpected exception or failure. This allows failures to be
    post-mortem debugged.

    Deprecated in Python 2.4:
    Optional keyword arg "isprivate" specifies a function used to
    determine whether a name is private.  The default function is
    treat all functions as public.  Optionally, "isprivate" can be
    set to doctest.is_private to skip over functions marked as private
    using the underscore naming convention; see its docs for details.

    Advanced tomfoolery:  testmod runs methods of a local instance of
    class doctest.Tester, then merges the results into (or creates)
    global Tester instance doctest.master.  Methods of doctest.master
    can be called directly too, if you want to do something unusual.
    Passing report=0 to testmod is especially useful then, to delay
    displaying a summary.  Invoke doctest.master.summarize(verbose)
    when you're done fiddling.
     N/A master N/A N/A isprivate None N/A N/A N/A N/A warnings warn the isprivate argument is deprecated; examine DocTestFinder.find() lists instead DeprecationWarning N/A N/A m None N/A N/A m N/A N/A N/A sys modules get __main__ N/A N/A N/A N/A inspect ismodule m N/A N/A N/A TypeError N/A testmod: module required; %r N/A m N/A N/A name None N/A N/A name N/A m __name__ N/A finder N/A DocTestFinder _namefilter isprivate exclude_empty exclude_empty N/A raise_on_error N/A N/A runner N/A DebugRunner verbose verbose optionflags optionflags N/A N/A runner N/A DocTestRunner verbose verbose optionflags optionflags N/A test N/A N/A finder find m name globs globs extraglobs extraglobs N/A N/A N/A N/A runner run test N/A report N/A N/A N/A N/A runner summarize N/A N/A master None N/A N/A master runner N/A N/A N/A N/A master merge runner N/A N/A N/A runner failures N/A runner tries N/A testfile N/A N/A filename module_relative name package globs verbose report optionflags extraglobs raise_on_error parser N/A True None None None None True 0 None False N/A DocTestParser N/A N/A 
    Test examples in the given file.  Return (#failures, #tests).

    Optional keyword arg "module_relative" specifies how filenames
    should be interpreted:

      - If "module_relative" is True (the default), then "filename"
         specifies a module-relative path.  By default, this path is
         relative to the calling module's directory; but if the
         "package" argument is specified, then it is relative to that
         package.  To ensure os-independence, "filename" should use
         "/" characters to separate path segments, and should not
         be an absolute path (i.e., it may not begin with "/").

      - If "module_relative" is False, then "filename" specifies an
        os-specific path.  The path may be absolute or relative (to
        the current working directory).

    Optional keyword arg "name" gives the name of the test; by default
    use the file's basename.

    Optional keyword argument "package" is a Python package or the
    name of a Python package whose directory should be used as the
    base directory for a module relative filename.  If no package is
    specified, then the calling module's directory is used as the base
    directory for module relative filenames.  It is an error to
    specify "package" if "module_relative" is False.

    Optional keyword arg "globs" gives a dict to be used as the globals
    when executing examples; by default, use {}.  A copy of this dict
    is actually used for each docstring, so that each docstring's
    examples start with a clean slate.

    Optional keyword arg "extraglobs" gives a dictionary that should be
    merged into the globals that are used to execute examples.  By
    default, no extra globals are used.

    Optional keyword arg "verbose" prints lots of stuff if true, prints
    only failures if false; by default, it's true iff "-v" is in sys.argv.

    Optional keyword arg "report" prints a summary at the end when true,
    else prints nothing at the end.  In verbose mode, the summary is
    detailed, else very brief (in fact, empty if all tests passed).

    Optional keyword arg "optionflags" or's together module constants,
    and defaults to 0.  Possible values (see the docs for details):

        DONT_ACCEPT_TRUE_FOR_1
        DONT_ACCEPT_BLANKLINE
        NORMALIZE_WHITESPACE
        ELLIPSIS
        IGNORE_EXCEPTION_DETAIL
        REPORT_UDIFF
        REPORT_CDIFF
        REPORT_NDIFF
        REPORT_ONLY_FIRST_FAILURE

    Optional keyword arg "raise_on_error" raises an exception on the
    first unexpected exception or failure. This allows failures to be
    post-mortem debugged.

    Optional keyword arg "parser" specifies a DocTestParser (or
    subclass) that should be used to extract tests from the files.

    Advanced tomfoolery:  testmod runs methods of a local instance of
    class doctest.Tester, then merges the results into (or creates)
    global Tester instance doctest.master.  Methods of doctest.master
    can be called directly too, if you want to do something unusual.
    Passing report=0 to testmod is especially useful then, to delay
    displaying a summary.  Invoke doctest.master.summarize(verbose)
    when you're done fiddling.
     N/A master N/A N/A package N/A module_relative N/A N/A N/A ValueError Package may only be specified for module-relative paths. N/A module_relative N/A N/A package N/A _normalize_module package N/A filename N/A _module_relative_path package filename N/A N/A name None N/A N/A name N/A N/A N/A os path basename filename N/A N/A globs None N/A N/A globs N/A N/A N/A globs N/A N/A globs copy N/A N/A extraglobs None N/A N/A N/A N/A globs update extraglobs N/A raise_on_error N/A N/A runner N/A DebugRunner verbose verbose optionflags optionflags N/A N/A runner N/A DocTestRunner verbose verbose optionflags optionflags N/A f N/A open filename N/A s N/A N/A f read N/A N/A N/A f close N/A test N/A N/A parser get_doctest s globs name filename 0 N/A N/A N/A runner run test N/A report N/A N/A N/A N/A runner summarize N/A N/A master None N/A N/A master runner N/A N/A N/A N/A master merge runner N/A N/A N/A runner failures N/A runner tries N/A run_docstring_examples N/A N/A f globs verbose name compileflags optionflags N/A False NoName None 0 N/A N/A 
    Test examples in the given object's docstring (`f`), using `globs`
    as globals.  Optional argument `name` is used in failure messages.
    If the optional argument `verbose` is true, then generate output
    even if there are no failures.

    `compileflags` gives the set of flags that should be used by the
    Python compiler when running the examples.  If not specified, then
    it will default to the set of future-import flags that apply to
    `globs`.

    Optional keyword arg `optionflags` specifies options for the
    testing and output.  See the documentation for `testmod` for more
    information.
     N/A finder N/A DocTestFinder verbose verbose recurse False N/A runner N/A DocTestRunner verbose verbose optionflags optionflags N/A test N/A N/A finder find f name globs globs N/A N/A N/A N/A runner run test compileflags compileflags N/A Tester N/A N/A __init__ N/A N/A self mod globs verbose isprivate optionflags N/A None None None None 0 N/A N/A N/A N/A warnings warn class Tester is deprecated; use class doctest.DocTestRunner instead DeprecationWarning stacklevel 2 N/A N/A N/A mod None N/A globs None N/A N/A N/A TypeError Tester.__init__: must specify mod or globs N/A N/A N/A mod None N/A N/A N/A inspect ismodule mod N/A N/A N/A TypeError N/A Tester.__init__: mod must be a module; %r N/A mod N/A N/A globs None N/A N/A globs N/A mod __dict__ N/A N/A self globs globs N/A N/A self verbose verbose N/A N/A self isprivate isprivate N/A N/A self optionflags optionflags N/A N/A self testfinder N/A DocTestFinder _namefilter isprivate N/A N/A self testrunner N/A DocTestRunner verbose verbose optionflags optionflags N/A runstring N/A N/A self s name N/A N/A N/A test N/A N/A N/A DocTestParser get_doctest s N/A self globs name None None N/A N/A self verbose N/A N/A N/A Running string name N/A N/A f t N/A N/A N/A self testrunner run test N/A N/A self verbose N/A N/A N/A f of t examples failed in string name N/A N/A f t N/A rundoc N/A N/A self object name module N/A None None N/A N/A f t 0 N/A tests N/A N/A N/A self testfinder find object name module module globs N/A self globs N/A test tests N/A N/A N/A f2 t2 N/A N/A N/A self testrunner run test N/A N/A f t N/A N/A f f2 N/A t t2 N/A N/A f t N/A rundict N/A N/A self d name module N/A None N/A N/A types N/A m N/A N/A types ModuleType name N/A N/A N/A N/A m __dict__ update d N/A N/A module None N/A N/A module False N/A N/A N/A self rundoc m name module N/A run__test__ N/A N/A self d name N/A N/A N/A types N/A m N/A N/A types ModuleType name N/A N/A m __test__ d N/A N/A N/A self rundoc m name N/A summarize N/A N/A self verbose N/A None N/A N/A N/A N/A N/A self testrunner summarize verbose N/A merge N/A N/A self other N/A N/A N/A N/A N/A N/A self testrunner merge N/A other testrunner N/A N/A N/A _unittest_reportflags 0 set_unittest_reportflags N/A N/A flags N/A N/A N/A Sets the unittest option flags.

    The old flag is returned so that a runner could restore the old
    value if it wished to:

      >>> old = _unittest_reportflags
      >>> set_unittest_reportflags(REPORT_NDIFF |
      ...                          REPORT_ONLY_FIRST_FAILURE) == old
      True

      >>> import doctest
      >>> doctest._unittest_reportflags == (REPORT_NDIFF |
      ...                                   REPORT_ONLY_FIRST_FAILURE)
      True

    Only reporting flags can be set:

      >>> set_unittest_reportflags(ELLIPSIS)
      Traceback (most recent call last):
      ...
      ValueError: ('Only reporting flags allowed', 8)

      >>> set_unittest_reportflags(old) == (REPORT_NDIFF |
      ...                                   REPORT_ONLY_FIRST_FAILURE)
      True
     N/A _unittest_reportflags N/A N/A N/A flags REPORTING_FLAGS flags N/A N/A N/A ValueError Only reporting flags allowed flags N/A old _unittest_reportflags N/A _unittest_reportflags flags N/A old N/A DocTestCase N/A N/A unittest TestCase N/A __init__ N/A N/A self test optionflags setUp tearDown checker N/A 0 None None None N/A N/A N/A N/A N/A unittest TestCase __init__ self N/A N/A self _dt_optionflags optionflags N/A N/A self _dt_checker checker N/A N/A self _dt_test test N/A N/A self _dt_setUp setUp N/A N/A self _dt_tearDown tearDown N/A setUp N/A N/A self N/A N/A N/A test N/A self _dt_test N/A N/A N/A self _dt_setUp None N/A N/A N/A N/A self _dt_setUp test N/A tearDown N/A N/A self N/A N/A N/A test N/A self _dt_test N/A N/A N/A self _dt_tearDown None N/A N/A N/A N/A self _dt_tearDown test N/A N/A N/A N/A test globs clear N/A runTest N/A N/A self N/A N/A N/A test N/A self _dt_test N/A old N/A sys stdout N/A new N/A StringIO N/A optionflags N/A self _dt_optionflags N/A N/A N/A optionflags REPORTING_FLAGS N/A N/A optionflags _unittest_reportflags N/A runner N/A DocTestRunner optionflags optionflags checker N/A self _dt_checker verbose False N/A N/A N/A N/A runner DIVIDER N/A - 70 N/A N/A failures tries N/A N/A runner run test out N/A new write clear_globs False N/A N/A N/A sys stdout old N/A failures N/A N/A N/A N/A self failureException N/A N/A self format_failure N/A N/A new getvalue N/A format_failure N/A N/A self err N/A N/A N/A test N/A self _dt_test N/A N/A N/A test lineno None N/A N/A lineno unknown line number N/A N/A lineno N/A %s N/A test lineno N/A lname N/A N/A . join N/A N/A N/A N/A test name split . N/A -1 N/A N/A Failed doctest test for %s
  File "%s", line %s, in %s

%s N/A N/A test name N/A test filename lineno lname err N/A debug N/A N/A self N/A N/A N/A Run the test case without results and without catching exceptions

           The unit test framework includes a debug method on test cases
           and test suites to support post-mortem debugging.  The test code
           is run in such a way that errors are not caught.  This way a
           caller can catch the errors and initiate post-mortem debugging.

           The DocTestCase provides a debug method that raises
           UnexpectedException errors if there is an unexepcted
           exception:

             >>> test = DocTestParser().get_doctest('>>> raise KeyError\n42',
             ...                {}, 'foo', 'foo.py', 0)
             >>> case = DocTestCase(test)
             >>> try:
             ...     case.debug()
             ... except UnexpectedException, failure:
             ...     pass

           The UnexpectedException contains the test, the example, and
           the original exception:

             >>> failure.test is test
             True

             >>> failure.example.want
             '42\n'

             >>> exc_info = failure.exc_info
             >>> raise exc_info[0], exc_info[1], exc_info[2]
             Traceback (most recent call last):
             ...
             KeyError

           If the output doesn't match, then a DocTestFailure is raised:

             >>> test = DocTestParser().get_doctest('''
             ...      >>> x = 1
             ...      >>> x
             ...      2
             ...      ''', {}, 'foo', 'foo.py', 0)
             >>> case = DocTestCase(test)

             >>> try:
             ...    case.debug()
             ... except DocTestFailure, failure:
             ...    pass

           DocTestFailure objects provide access to the test:

             >>> failure.test is test
             True

           As well as to the example:

             >>> failure.example.want
             '2\n'

           and the actual output:

             >>> failure.got
             '1\n'

            N/A N/A N/A self setUp N/A runner N/A DebugRunner optionflags N/A self _dt_optionflags checker N/A self _dt_checker verbose False N/A N/A N/A runner run N/A self _dt_test N/A N/A N/A self tearDown N/A id N/A N/A self N/A N/A N/A N/A N/A self _dt_test name N/A __repr__ N/A N/A self N/A N/A N/A name N/A N/A N/A N/A self _dt_test name split . N/A N/A %s (%s) N/A N/A name N/A -1 N/A N/A . join N/A name N/A -1 N/A N/A __str__ __repr__ shortDescription N/A N/A self N/A N/A N/A N/A Doctest:  N/A N/A self _dt_test name N/A N/A DocTestSuite N/A N/A module globs extraglobs test_finder N/A None None None None options N/A N/A 
    Convert doctest tests for a module to a unittest test suite.

    This converts each documentation string in a module that
    contains doctest tests to a unittest test case.  If any of the
    tests in a doc string fail, then the test case fails.  An exception
    is raised showing the name of the file containing the test and a
    (sometimes approximate) line number.

    The `module` argument provides the module to be tested.  The argument
    can be either a module or a module name.

    If no argument is given, the calling module is used.

    A number of options may be provided as keyword arguments:

    setUp
      A set-up function.  This is called before running the
      tests in each file. The setUp function will be passed a DocTest
      object.  The setUp function can access the test globals as the
      globs attribute of the test passed.

    tearDown
      A tear-down function.  This is called after running the
      tests in each file.  The tearDown function will be passed a DocTest
      object.  The tearDown function can access the test globals as the
      globs attribute of the test passed.

    globs
      A dictionary containing initial global variables for the tests.

    optionflags
       A set of doctest option flags expressed as an integer.
     N/A N/A test_finder None N/A N/A test_finder N/A DocTestFinder N/A module N/A _normalize_module module N/A tests N/A N/A test_finder find module globs globs extraglobs extraglobs N/A N/A globs None N/A N/A globs N/A module __dict__ N/A N/A tests N/A N/A N/A ValueError module has no tests N/A N/A N/A tests sort N/A suite N/A N/A unittest TestSuite N/A test tests N/A N/A N/A N/A len N/A test examples 0 N/A N/A N/A N/A N/A test filename N/A N/A filename N/A module __file__ N/A N/A N/A filename N/A -4 N/A .pyc .pyo N/A N/A filename N/A filename N/A -1 N/A N/A test filename filename N/A N/A N/A suite addTest N/A DocTestCase test options N/A suite N/A DocFileCase N/A DocTestCase N/A id N/A N/A self N/A N/A N/A N/A N/A _ join N/A N/A N/A N/A self _dt_test name split . N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A self _dt_test filename N/A N/A __str__ __repr__ format_failure N/A N/A self err N/A N/A N/A N/A Failed doctest test for %s
  File "%s", line 0

%s N/A N/A N/A self _dt_test name N/A N/A self _dt_test filename err N/A N/A DocFileTest N/A N/A path module_relative package globs parser N/A True None None N/A DocTestParser options N/A N/A N/A globs None N/A N/A globs N/A N/A N/A package N/A module_relative N/A N/A N/A ValueError Package may only be specified for module-relative paths. N/A module_relative N/A N/A package N/A _normalize_module package N/A path N/A _module_relative_path package path N/A name N/A N/A N/A os path basename path N/A f N/A open path N/A doc N/A N/A f read N/A N/A N/A f close N/A test N/A N/A parser get_doctest doc globs name path 0 N/A N/A DocFileCase test options N/A DocFileSuite N/A N/A N/A paths kw N/A N/A A unittest suite for one or more doctest files.

    The path to each doctest file is given as a string; the
    interpretation of that string depends on the keyword argument
    "module_relative".

    A number of options may be provided as keyword arguments:

    module_relative
      If "module_relative" is True, then the given file paths are
      interpreted as os-independent module-relative paths.  By
      default, these paths are relative to the calling module's
      directory; but if the "package" argument is specified, then
      they are relative to that package.  To ensure os-independence,
      "filename" should use "/" characters to separate path
      segments, and may not be an absolute path (i.e., it may not
      begin with "/").

      If "module_relative" is False, then the given file paths are
      interpreted as os-specific paths.  These paths may be absolute
      or relative (to the current working directory).

    package
      A Python package or the name of a Python package whose directory
      should be used as the base directory for module relative paths.
      If "package" is not specified, then the calling module's
      directory is used as the base directory for module relative
      filenames.  It is an error to specify "package" if
      "module_relative" is False.

    setUp
      A set-up function.  This is called before running the
      tests in each file. The setUp function will be passed a DocTest
      object.  The setUp function can access the test globals as the
      globs attribute of the test passed.

    tearDown
      A tear-down function.  This is called after running the
      tests in each file.  The tearDown function will be passed a DocTest
      object.  The tearDown function can access the test globals as the
      globs attribute of the test passed.

    globs
      A dictionary containing initial global variables for the tests.

    optionflags
      A set of doctest option flags expressed as an integer.

    parser
      A DocTestParser (or subclass) that should be used to extract
      tests from the files.
     N/A suite N/A N/A unittest TestSuite N/A N/A N/A kw get module_relative True N/A N/A N/A kw N/A package N/A _normalize_module N/A N/A kw get package N/A path paths N/A N/A N/A N/A suite addTest N/A DocFileTest path kw N/A suite N/A script_from_examples N/A N/A s N/A N/A N/A Extract script from text with examples.

       Converts text with examples to a Python script.  Example input is
       converted to regular code.  Example output and all other words
       are converted to comments:

       >>> text = '''
       ...       Here are examples of simple math.
       ...
       ...           Python has super accurate integer addition
       ...
       ...           >>> 2 + 2
       ...           5
       ...
       ...           And very friendly error messages:
       ...
       ...           >>> 1/0
       ...           To Infinity
       ...           And
       ...           Beyond
       ...
       ...           You can use logic if you want:
       ...
       ...           >>> if 0:
       ...           ...    blah
       ...           ...    blah
       ...           ...
       ...
       ...           Ho hum
       ...           '''

       >>> print script_from_examples(text)
       # Here are examples of simple math.
       #
       #     Python has super accurate integer addition
       #
       2 + 2
       # Expected:
       ## 5
       #
       #     And very friendly error messages:
       #
       1/0
       # Expected:
       ## To Infinity
       ## And
       ## Beyond
       #
       #     You can use logic if you want:
       #
       if 0:
          blah
          blah
       #
       #     Ho hum
        N/A output N/A N/A piece N/A N/A N/A DocTestParser parse s N/A N/A N/A isinstance piece Example N/A N/A N/A N/A output append N/A N/A piece source N/A -1 N/A want N/A piece want N/A want N/A N/A N/A N/A output append # Expected: N/A output N/A N/A ##  l N/A l N/A N/A N/A want split N/A -1 N/A N/A output N/A N/A _comment_line l N/A l N/A N/A N/A piece split N/A -1 N/A N/A output N/A N/A output N/A -1 # N/A N/A N/A N/A output pop N/A N/A output N/A N/A output N/A 0 # N/A N/A N/A N/A output pop 0 N/A N/A N/A join output N/A testsource N/A N/A module name N/A N/A N/A Extract the test sources from a doctest docstring as a script.

    Provide the module (or dotted name of the module) containing the
    test to be debugged and the name (within the module) of the object
    with the doc string with tests to be debugged.
     N/A module N/A _normalize_module module N/A tests N/A N/A N/A DocTestFinder find module N/A test N/A t N/A t tests N/A N/A t name name N/A N/A test N/A N/A N/A ValueError name not found in tests N/A test N/A test N/A 0 N/A testsrc N/A script_from_examples N/A test docstring N/A testsrc N/A debug_src N/A N/A src pm globs N/A False None N/A N/A Debug a single doctest docstring, in argument `src`' N/A testsrc N/A script_from_examples src N/A N/A debug_script testsrc pm globs N/A debug_script N/A N/A src pm globs N/A False None N/A N/A Debug a test script.  `src` is the script, as a string. N/A pdb N/A srcfilename N/A N/A tempfile mktemp .py doctestdebug N/A f N/A open srcfilename w N/A N/A N/A f write src N/A N/A N/A f close N/A N/A N/A globs N/A N/A globs N/A N/A globs copy N/A N/A globs N/A N/A pm N/A N/A N/A N/A N/A execfile srcfilename globs globs N/A N/A N/A N/A N/A N/A N/A sys exc_info N/A 1 N/A N/A N/A pdb post_mortem N/A N/A N/A sys exc_info N/A 2 N/A N/A N/A N/A pdb run N/A execfile(%r) srcfilename globs globs N/A N/A N/A N/A os remove srcfilename N/A debug N/A N/A module name pm N/A False N/A N/A Debug a single doctest docstring.

    Provide the module (or dotted name of the module) containing the
    test to be debugged and the name (within the module) of the object
    with the docstring with tests to be debugged.
     N/A module N/A _normalize_module module N/A testsrc N/A testsource module name N/A N/A debug_script testsrc pm N/A module __dict__ N/A _TestClass N/A N/A N/A 
    A pointless class, for sanity-checking of docstring testing.

    Methods:
        square()
        get()

    >>> _TestClass(13).get() + _TestClass(-12).get()
    1
    >>> hex(_TestClass(13).square().get())
    '0xa9'
     __init__ N/A N/A self val N/A N/A N/A val -> _TestClass object with associated value val.

        >>> t = _TestClass(123)
        >>> print t.get()
        123
         N/A N/A self val val N/A square N/A N/A self N/A N/A N/A square() -> square TestClass's associated value

        >>> _TestClass(13).square().get()
        169
         N/A N/A self val N/A N/A self val 2 N/A self N/A get N/A N/A self N/A N/A N/A get() -> return TestClass's associated value.

        >>> x = _TestClass(-42)
        >>> print x.get()
        -42
         N/A N/A self val N/A N/A N/A __test__ N/A _TestClass string bool-int equivalence blank lines ellipsis whitespace normalization _TestClass 
                      Example of a string object, searched as-is.
                      >>> x = 1; y = 2
                      >>> x + y, x * y
                      (3, 2)
                       
                                    In 2.2, boolean expressions displayed
                                    0 or 1.  By default, we still accept
                                    them.  This can be disabled by passing
                                    DONT_ACCEPT_TRUE_FOR_1 to the new
                                    optionflags argument.
                                    >>> 4 == 4
                                    1
                                    >>> 4 == 4
                                    True
                                    >>> 4 > 4
                                    0
                                    >>> 4 > 4
                                    False
                                     
                Blank lines can be marked with <BLANKLINE>:
                    >>> print 'foo\n\nbar\n'
                    foo
                    <BLANKLINE>
                    bar
                    <BLANKLINE>
             
                If the ellipsis flag is used, then '...' can be used to
                elide substrings in the desired output:
                    >>> print range(1000) #doctest: +ELLIPSIS
                    [0, 1, 2, ..., 999]
             
                If the whitespace normalization flag is used, then
                differences in whitespace are ignored.
                    >>> print range(30) #doctest: +NORMALIZE_WHITESPACE
                    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
                     15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
                     27, 28, 29]
             _test N/A N/A N/A N/A N/A r N/A N/A unittest TextTestRunner N/A N/A N/A r run N/A DocTestSuite N/A N/A N/A __name__ __main__ N/A N/A N/A _test