Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias FunctionDef arguments args NameParam defaults body Expr Str Return BinOpMult Num NameLoad decorator_list FunctionDef arguments args defaults vararg body Expr Str Raise NameLoad decorator_list FunctionDef arguments args defaults body Expr Str For NameStore TupleLoad Num Num Num body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq BinOpMod NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return CompareEq BinOpMod NameLoad Num Num decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call NameLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Str Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Str Call NameLoad Num ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Str Call NameLoad Num ListLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpSub AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Call NameLoad Num ListLoad Num Num Num Num Num Num Num Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad Call NameLoad ListLoad Expr Call AttributeLoad NameLoad attr ListLoad Call NameLoad Call NameLoad ListLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Str ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Lambda arguments args NameParam defaults NameLoad Num Assign NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num Num Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num body For TupleStore NameStore NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Str Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Assign NameStore ListComp TupleLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str Assign NameStore SubscriptLoad Call NameLoad ListComp TupleLoad Call NameLoad Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad keyword NameLoad Slice Num Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam defaults Num body For NameStore Call NameLoad NameLoad body Expr Yield Str Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return ListComp Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body Raise NameLoad decorator_list decorator_list Assign NameStore ListLoad Call NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body AugAssignSub AttributeStore NameLoad attr Num Return NameLoad orelse Raise NameLoad decorator_list Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad ListLoad Num Num Num Num Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad NameLoad Call NameLoad ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Call NameLoad Num Call NameLoad Num attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad ListLoad Num Num Num Num Num ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad NameLoad Call NameLoad ListLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Call NameLoad Num Call NameLoad Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Str Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Call NameLoad Num Call NameLoad Str Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Call NameLoad Num Call NameLoad Str Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Str Call NameLoad Call NameLoad Str Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr ListComp Call NameLoad Call NameLoad NameLoad comprehension NameStore Call NameLoad Str Str Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore Call NameLoad Str Str Call NameLoad Str Str Assign NameStore Call NameLoad NameLoad Call NameLoad Call NameLoad Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Call NameLoad Str ListLoad TupleLoad Num Str TupleLoad Num Str TupleLoad Num Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Num ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Str ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Num ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Str Num ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpAdd Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Assign NameStore Call NameLoad BinOpAdd Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad Num Num ListLoad BinOpPow Num Num BinOpPow Num Num BinOpPow Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Str Call NameLoad Num ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Str Call NameLoad ListLoad TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad NameLoad Str Call NameLoad ListLoad TupleLoad Str Num TupleLoad Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Num Call NameLoad Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad ListLoad Num ListLoad Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad ListLoad Num ListLoad Num attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad Num Call NameLoad Num Num ListLoad BinOpPow Num Num BinOpPow Num Num BinOpPow Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Num Call NameLoad AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num ListLoad BinOpPow Num Num BinOpPow Num Num BinOpPow Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr ListLoad ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Num ListLoad TupleLoad Num Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad ListLoad TupleLoad Num Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad ListLoad TupleLoad Num Num attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore ListLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad Num Num TupleLoad Num Num TupleLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore ListLoad TupleLoad TupleLoad Num Num Num TupleLoad Num Num Num TupleLoad TupleLoad Num Num TupleLoad Num Num TupleLoad TupleLoad Num TupleLoad Num body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num NameLoad NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num NameLoad NameLoad NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num Num NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Num Num NameLoad Num Call NameLoad Num Num Num Assign NameStore Call NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Num Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Str Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Str Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Num Num Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad Call NameLoad Num Num AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Num Num Num Num Num Assign NameStore Lambda arguments args NameParam defaults CompareLt NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Num ListLoad TupleLoad Num Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad ListLoad TupleLoad Num Num attr Assign NameStore Call NameLoad NameLoad ListLoad Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Num Num Num Num Num Num Assign NameStore Lambda arguments args NameParam defaults CompareLt NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad NameLoad ListLoad Num Num Num Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad ListLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr ListLoad TupleLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Num ListLoad TupleLoad Num Num attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad ListLoad TupleLoad Num Num attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num FunctionDef arguments args NameParam defaults body For NameStore Call NameLoad NameLoad body Expr Yield NameLoad decorator_list Assign TupleStore NameStore NameStore Call NameLoad ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Delete NameDel Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Delete NameDel Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Num NameLoad For NameStore Call NameLoad Num body Assign NameStore BinOpAdd BinOpMult ListLoad Num NameLoad BinOpMult ListLoad Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore TupleLoad ListLoad ListLoad Assign NameStore Call NameLoad Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Num Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Num Num Num Str Assign TupleStore NameStore NameStore Call NameLoad Str Assign NameStore Call Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Str Assign TupleStore NameStore NameStore NameStore Call NameLoad Call NameLoad Num Num For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Num For NameStore Call NameLoad Num body Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad BinOpMult ListLoad Call NameLoad Str NameLoad Assign TupleStore NameStore NameStore Call NameLoad Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareEqEq Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad Str Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Str Call NameLoad NameLoad Delete NameDel decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad ListLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Call NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad ListLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Call NameLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad ListLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad NameLoad Num attr For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Lambda arguments args NameParam defaults NameLoad ListLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad Lambda arguments args NameParam defaults NameLoad Call NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Delete NameDel NameDel decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult ListLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Num NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult ListLoad NameLoad Num Lambda arguments args NameParam defaults NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults NameLoad BinOpMult ListLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult ListLoad NameLoad Num BinOpMult ListLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults NameLoad BinOpMult ListLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMult ListLoad NameLoad Num NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args defaults vararg NameLoad BinOpMult ListLoad TupleLoad NameLoad NameLoad Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad ListLoad Num Num NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body Expr Yield NameLoad decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr BinOpFloorDiv Num Num decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call NameLoad Lambda arguments args NameParam defaults NameLoad Call NameLoad Call NameLoad Call NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Call NameLoad Num TupleLoad Str Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad BinOpAdd Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Call NameLoad Num TupleLoad Str Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore BinOpMult Call NameLoad NameLoad Num Assign NameStore BinOpMult Call NameLoad Call NameLoad NameLoad Num Assign NameStore Call NameLoad Call NameLoad Call NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Call NameLoad Num TupleLoad Str Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Call NameLoad Num TupleLoad Str Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call NameLoad NameLoad Num NameLoad Num SubscriptLoad Call NameLoad Call NameLoad NameLoad Slice Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body If UnaryOpNot Call NameLoad NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Call NameLoad Num Call NameLoad Num Call NameLoad Num TupleLoad Num Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad body Continue Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore TupleLoad Str Str Call NameLoad Num TupleLoad Str Num Call NameLoad Num Num Num body For NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad Call NameLoad Call NameLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad Call NameLoad Call NameLoad NameLoad Index Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ImportFrom alias Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad NameLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam NameParam defaults ListLoad Num body If NameLoad body Delete SubscriptDel NameLoad Slice Expr Call NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Assign SubscriptStore NameLoad Slice Num Num Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult ListLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Global identifier Assign NameStore NameLoad Assign SubscriptStore NameLoad Slice Call NameLoad NameLoad decorator_list Assign NameStore ListLoad Expr Call NameLoad TupleLoad Num Num Num NameLoad TupleLoad Num Num Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Expr Yield Num Expr Call AttributeLoad NameLoad attr Num Raise NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Yield Num Expr Call AttributeLoad NameLoad attr Num If NameLoad body Raise NameLoad decorator_list Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Num Num decorator_list decorator_list Assign NameStore Str Assign NameStore Dict Str NameLoad FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad Call NameLoad NameLoad Str body Import alias Assign NameStore BinOpMult ListLoad NameLoad Num For NameStore Call NameLoad Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Print NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad keyword NameLoad
N/A N/A unittest test test_support itertools * weakref proxy N/A sys N/A operator N/A random onearg N/A N/A x N/A N/A N/A Test function of one argument N/A N/A 2 x N/A errfunc N/A N/A N/A args N/A N/A Test function that raises an error N/A ValueError N/A gen3 N/A N/A N/A N/A N/A Non-restartable source sequence N/A i N/A 0 1 2 N/A N/A N/A i N/A isEven N/A N/A x N/A N/A N/A Test predicate N/A N/A N/A x 2 0 N/A isOdd N/A N/A x N/A N/A N/A Test predicate N/A N/A N/A x 2 1 N/A StopNow N/A N/A N/A Class emulating an empty iterable. __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A StopIteration N/A N/A take N/A N/A n seq N/A N/A N/A Convenience function for partially consuming a long of infinite iterable N/A N/A list N/A islice seq n N/A TestBasicOps N/A N/A unittest TestCase N/A test_chain N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A list N/A chain abc def N/A list abcdef N/A N/A N/A self assertEqual N/A list N/A chain abc N/A list abc N/A N/A N/A self assertEqual N/A list N/A chain N/A N/A N/A N/A self assertEqual N/A take 4 N/A chain abc def N/A list abcd N/A N/A N/A self assertRaises TypeError chain 2 3 N/A test_count N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A zip abc N/A count N/A N/A a 0 N/A b 1 N/A c 2 N/A N/A N/A self assertEqual N/A zip abc N/A count 3 N/A N/A a 3 N/A b 4 N/A c 5 N/A N/A N/A self assertEqual N/A take 2 N/A zip abc N/A count 3 N/A N/A a 3 N/A b 4 N/A N/A N/A self assertRaises TypeError count 2 3 N/A N/A N/A self assertRaises TypeError count a N/A c N/A count N/A N/A sys maxint 2 N/A N/A N/A c next N/A N/A N/A c next N/A N/A N/A c next N/A N/A N/A c next N/A N/A N/A c next N/A c N/A count 3 N/A N/A N/A self assertEqual N/A repr c count(3) N/A N/A N/A c next N/A N/A N/A self assertEqual N/A repr c count(4) N/A test_cycle N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A take 10 N/A cycle abc N/A list abcabcabca N/A N/A N/A self assertEqual N/A list N/A cycle N/A N/A N/A N/A self assertRaises TypeError cycle N/A N/A N/A self assertRaises TypeError cycle 5 N/A N/A N/A self assertEqual N/A list N/A islice N/A cycle N/A gen3 10 N/A 0 1 2 0 1 2 0 1 2 0 N/A test_groupby N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A list N/A groupby N/A N/A N/A N/A self assertEqual N/A N/A list N/A groupby N/A key id N/A N/A N/A self assertRaises TypeError list N/A groupby abc N/A N/A N/A N/A self assertRaises TypeError groupby None N/A N/A N/A self assertRaises TypeError groupby abc N/A N/A N/A x N/A x 10 N/A s N/A N/A 0 10 20 N/A 0 11 21 N/A 0 12 21 N/A 1 13 21 N/A 1 14 22 N/A 2 15 22 N/A 3 16 23 N/A 3 17 23 N/A dup N/A N/A N/A k g N/A groupby s N/A N/A N/A r N/A N/A r N/A 0 N/A N/A elem g N/A N/A N/A N/A self assertEqual k N/A elem N/A 0 N/A N/A N/A dup append elem N/A N/A N/A self assertEqual s dup N/A dup N/A N/A N/A k g N/A groupby s N/A N/A N/A r N/A N/A r N/A 0 N/A N/A N/A ik ig N/A groupby g N/A N/A N/A r N/A N/A r N/A 2 N/A N/A elem ig N/A N/A N/A N/A self assertEqual k N/A elem N/A 0 N/A N/A N/A self assertEqual ik N/A elem N/A 2 N/A N/A N/A dup append elem N/A N/A N/A self assertEqual s dup N/A keys N/A k N/A N/A k g N/A groupby s N/A N/A N/A r N/A N/A r N/A 0 N/A expectedkeys N/A set N/A N/A r N/A 0 N/A r s N/A N/A N/A self assertEqual N/A set keys expectedkeys N/A N/A N/A self assertEqual N/A len keys N/A len expectedkeys N/A s abracadabra N/A r N/A k N/A N/A k g N/A groupby N/A sorted s N/A N/A N/A self assertEqual r N/A a b c d r N/A r N/A k N/A N/A k g N/A groupby N/A sorted s N/A list N/A islice g 1 2 N/A N/A N/A self assertEqual r N/A a b r N/A r N/A N/A N/A len N/A list g k N/A N/A k g N/A groupby N/A sorted s N/A N/A N/A self assertEqual r N/A N/A 5 a N/A 2 b N/A 1 c N/A 1 d N/A 2 r N/A r N/A N/A sorted N/A N/A N/A len N/A list g k N/A N/A k g N/A groupby N/A sorted s reverse True N/A 3 N/A N/A N/A self assertEqual r N/A N/A 5 a N/A 2 r N/A 2 b ExpectedError N/A Exception N/A N/A N/A delayed_raise N/A N/A n N/A 0 N/A N/A i N/A range n N/A N/A N/A yo N/A ExpectedError N/A gulp N/A N/A iterable keyp func N/A None list N/A N/A N/A N/A func g N/A N/A k g N/A groupby iterable keyp N/A N/A N/A N/A self assertRaises ExpectedError gulp N/A delayed_raise 0 DummyCmp N/A N/A __cmp__ N/A N/A self dst N/A N/A N/A ExpectedError N/A N/A N/A s N/A N/A DummyCmp N/A DummyCmp None keyfunc N/A N/A obj N/A N/A N/A N/A N/A keyfunc skip 0 N/A N/A N/A keyfunc skip 1 N/A obj N/A N/A ExpectedError N/A N/A N/A keyfunc skip 0 N/A N/A N/A self assertRaises ExpectedError gulp N/A None keyfunc N/A N/A keyfunc skip 1 N/A N/A N/A self assertRaises ExpectedError gulp N/A None None keyfunc N/A test_ifilter N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A list N/A ifilter isEven N/A range 6 N/A 0 2 4 N/A N/A N/A self assertEqual N/A list N/A ifilter None N/A 0 1 0 2 0 N/A 1 2 N/A N/A N/A self assertEqual N/A take 4 N/A ifilter isEven N/A count N/A 0 2 4 6 N/A N/A N/A self assertRaises TypeError ifilter N/A N/A N/A self assertRaises TypeError ifilter N/A N/A N/A x N/A x N/A N/A N/A self assertRaises TypeError ifilter N/A N/A N/A x N/A x N/A range 6 7 N/A N/A N/A self assertRaises TypeError ifilter isEven 3 N/A N/A N/A self assertRaises TypeError N/A N/A ifilter N/A range 6 N/A range 6 next N/A test_ifilterfalse N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A list N/A ifilterfalse isEven N/A range 6 N/A 1 3 5 N/A N/A N/A self assertEqual N/A list N/A ifilterfalse None N/A 0 1 0 2 0 N/A 0 0 0 N/A N/A N/A self assertEqual N/A take 4 N/A ifilterfalse isEven N/A count N/A 1 3 5 7 N/A N/A N/A self assertRaises TypeError ifilterfalse N/A N/A N/A self assertRaises TypeError ifilterfalse N/A N/A N/A x N/A x N/A N/A N/A self assertRaises TypeError ifilterfalse N/A N/A N/A x N/A x N/A range 6 7 N/A N/A N/A self assertRaises TypeError ifilterfalse isEven 3 N/A N/A N/A self assertRaises TypeError N/A N/A ifilterfalse N/A range 6 N/A range 6 next N/A test_izip N/A N/A self N/A N/A N/A ans N/A N/A x y N/A N/A x y N/A izip abc N/A count N/A N/A N/A self assertEqual ans N/A N/A a 0 N/A b 1 N/A c 2 N/A N/A N/A self assertEqual N/A list N/A izip abc N/A range 6 N/A zip abc N/A range 6 N/A N/A N/A self assertEqual N/A list N/A izip abcdef N/A range 3 N/A zip abcdef N/A range 3 N/A N/A N/A self assertEqual N/A take 3 N/A izip abcdef N/A count N/A zip abcdef N/A range 3 N/A N/A N/A self assertEqual N/A list N/A izip abcdef N/A zip abcdef N/A N/A N/A self assertEqual N/A list N/A izip N/A zip N/A N/A N/A self assertRaises TypeError izip 3 N/A N/A N/A self assertRaises TypeError izip N/A range 3 3 N/A N/A N/A self assertEqual N/A N/A tuple N/A list pair N/A pair N/A izip abc def N/A zip abc def N/A N/A N/A self assertEqual N/A pair N/A pair N/A izip abc def N/A zip abc def N/A ids N/A map id N/A list N/A izip abc def N/A N/A N/A self assertEqual N/A len N/A N/A dict fromkeys ids N/A len ids N/A test_repeat N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A zip N/A xrange 3 N/A repeat a N/A N/A 0 a N/A 1 a N/A 2 a N/A N/A N/A self assertEqual N/A list N/A repeat a 3 N/A a a a N/A N/A N/A self assertEqual N/A take 3 N/A repeat a N/A a a a N/A N/A N/A self assertEqual N/A list N/A repeat a 0 N/A N/A N/A N/A self assertEqual N/A list N/A repeat a -3 N/A N/A N/A N/A self assertRaises TypeError repeat N/A N/A N/A self assertRaises TypeError repeat None 3 4 N/A N/A N/A self assertRaises TypeError repeat None a N/A r N/A repeat N/A 1 0j N/A N/A N/A self assertEqual N/A repr r repeat((1+0j)) N/A r N/A repeat N/A 1 0j 5 N/A N/A N/A self assertEqual N/A repr r repeat((1+0j), 5) N/A N/A list r N/A N/A N/A self assertEqual N/A repr r repeat((1+0j), 0) N/A test_imap N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A list N/A imap N/A operator pow N/A range 3 N/A range 1 7 N/A N/A 0 1 N/A 1 2 N/A 2 3 N/A N/A N/A self assertEqual N/A list N/A imap None abc N/A range 5 N/A N/A a 0 N/A b 1 N/A c 2 N/A N/A N/A self assertEqual N/A list N/A imap None abc N/A count N/A N/A a 0 N/A b 1 N/A c 2 N/A N/A N/A self assertEqual N/A take 2 N/A imap None abc N/A count N/A N/A a 0 N/A b 1 N/A N/A N/A self assertEqual N/A list N/A imap N/A operator pow N/A N/A N/A N/A N/A self assertRaises TypeError imap N/A N/A N/A self assertRaises TypeError imap N/A operator neg N/A N/A N/A self assertRaises TypeError N/A N/A imap 10 N/A range 5 next N/A N/A N/A self assertRaises ValueError N/A N/A imap errfunc N/A 4 N/A 5 next N/A N/A N/A self assertRaises TypeError N/A N/A imap onearg N/A 4 N/A 5 next N/A test_starmap N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A list N/A starmap N/A operator pow N/A zip N/A range 3 N/A range 1 7 N/A N/A 0 1 N/A 1 2 N/A 2 3 N/A N/A N/A self assertEqual N/A take 3 N/A starmap N/A operator pow N/A izip N/A count N/A count 1 N/A N/A 0 1 N/A 1 2 N/A 2 3 N/A N/A N/A self assertEqual N/A list N/A starmap N/A operator pow N/A N/A N/A N/A N/A self assertRaises TypeError list N/A starmap N/A operator pow N/A N/A 4 5 N/A N/A N/A self assertRaises TypeError starmap N/A N/A N/A self assertRaises TypeError starmap N/A operator pow N/A N/A 4 5 extra N/A N/A N/A self assertRaises TypeError N/A N/A starmap 10 N/A N/A 4 5 next N/A N/A N/A self assertRaises ValueError N/A N/A starmap errfunc N/A N/A 4 5 next N/A N/A N/A self assertRaises TypeError N/A N/A starmap onearg N/A N/A 4 5 next N/A test_islice N/A N/A self N/A N/A N/A args N/A N/A 10 20 3 N/A 10 3 20 N/A 10 20 N/A 10 3 N/A 20 N/A N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 100 args N/A range args N/A N/A args tgtargs N/A N/A N/A 10 110 3 N/A 10 100 3 N/A N/A 10 110 N/A 10 100 N/A N/A 110 N/A 100 N/A N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 100 args N/A range tgtargs N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 10 None N/A range 10 N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 10 None None N/A range 10 N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 10 None None None N/A range 10 N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 10 2 None N/A range 2 10 N/A N/A N/A self assertEqual N/A list N/A islice N/A xrange 10 1 None 2 N/A range 1 10 2 N/A it N/A iter N/A range 10 N/A N/A N/A self assertEqual N/A list N/A islice it 3 N/A range 3 N/A N/A N/A self assertEqual N/A list it N/A range 3 10 N/A N/A N/A self assertRaises TypeError islice N/A xrange 10 N/A N/A N/A self assertRaises TypeError islice N/A xrange 10 1 2 3 4 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 -5 10 1 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 1 -5 -1 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 1 10 -1 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 1 10 0 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 a N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 a 1 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 1 a N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 a 1 1 N/A N/A N/A self assertRaises ValueError islice N/A xrange 10 1 a 1 N/A N/A N/A self assertEqual N/A len N/A list N/A islice N/A count 1 10 N/A sys maxint 1 N/A test_takewhile N/A N/A self N/A N/A N/A data N/A 1 3 5 20 2 4 6 8 N/A underten N/A N/A N/A x N/A N/A x 10 N/A N/A N/A self assertEqual N/A list N/A takewhile underten data N/A 1 3 5 N/A N/A N/A self assertEqual N/A list N/A takewhile underten N/A N/A N/A N/A N/A self assertRaises TypeError takewhile N/A N/A N/A self assertRaises TypeError takewhile N/A operator pow N/A N/A N/A self assertRaises TypeError takewhile N/A operator pow N/A N/A 4 5 extra N/A N/A N/A self assertRaises TypeError N/A N/A takewhile 10 N/A N/A 4 5 next N/A N/A N/A self assertRaises ValueError N/A N/A takewhile errfunc N/A N/A 4 5 next N/A t N/A takewhile bool N/A 1 1 1 0 0 0 N/A N/A N/A self assertEqual N/A list t N/A 1 1 1 N/A N/A N/A self assertRaises StopIteration N/A t next N/A test_dropwhile N/A N/A self N/A N/A N/A data N/A 1 3 5 20 2 4 6 8 N/A underten N/A N/A N/A x N/A N/A x 10 N/A N/A N/A self assertEqual N/A list N/A dropwhile underten data N/A 20 2 4 6 8 N/A N/A N/A self assertEqual N/A list N/A dropwhile underten N/A N/A N/A N/A N/A self assertRaises TypeError dropwhile N/A N/A N/A self assertRaises TypeError dropwhile N/A operator pow N/A N/A N/A self assertRaises TypeError dropwhile N/A operator pow N/A N/A 4 5 extra N/A N/A N/A self assertRaises TypeError N/A N/A dropwhile 10 N/A N/A 4 5 next N/A N/A N/A self assertRaises ValueError N/A N/A dropwhile errfunc N/A N/A 4 5 next N/A test_tee N/A N/A self N/A N/A N/A n 200 irange N/A N/A n N/A N/A N/A i N/A xrange n N/A N/A N/A i N/A N/A N/A a b N/A tee N/A N/A N/A N/A self assertEqual N/A list a N/A N/A N/A N/A self assertEqual N/A list b N/A N/A N/A a b N/A tee N/A irange n N/A N/A N/A self assertEqual N/A zip a b N/A zip N/A range n N/A range n N/A N/A a b N/A tee N/A irange n N/A N/A N/A self assertEqual N/A list a N/A range n N/A N/A N/A self assertEqual N/A list b N/A range n N/A N/A a b N/A tee N/A irange n N/A i N/A xrange 100 N/A N/A N/A N/A self assertEqual N/A N/A a next i N/A a N/A N/A N/A self assertEqual N/A list b N/A range n N/A N/A a b N/A tee N/A irange n N/A i N/A xrange 100 N/A N/A N/A N/A self assertEqual N/A N/A a next i N/A b N/A N/A N/A self assertEqual N/A list a N/A range 100 n N/A j N/A xrange 5 N/A N/A order N/A N/A N/A 0 n N/A N/A 1 n N/A N/A N/A random shuffle order N/A lists N/A N/A N/A N/A its N/A tee N/A irange n N/A i order N/A N/A value N/A N/A N/A its N/A i next N/A N/A N/A N/A lists N/A i append value N/A N/A N/A self assertEqual N/A lists N/A 0 N/A range n N/A N/A N/A self assertEqual N/A lists N/A 1 N/A range n N/A N/A N/A self assertRaises TypeError tee N/A N/A N/A self assertRaises TypeError tee 3 N/A N/A N/A self assertRaises TypeError tee N/A 1 2 x N/A N/A N/A self assertRaises TypeError tee N/A 1 2 3 x N/A N/A a b N/A tee abc N/A c N/A N/A type a def N/A N/A N/A self assertEqual N/A list c N/A list def N/A N/A a b c N/A tee N/A xrange 2000 3 N/A i N/A xrange 100 N/A N/A N/A N/A self assertEqual N/A N/A a next i N/A N/A N/A self assertEqual N/A list b N/A range 2000 N/A N/A N/A self assertEqual N/A N/A N/A c next N/A N/A c next N/A range 2 N/A N/A N/A self assertEqual N/A list a N/A range 100 2000 N/A N/A N/A self assertEqual N/A list c N/A range 2 2000 N/A N/A N/A self assertRaises TypeError tee abc invalid N/A N/A N/A self assertRaises ValueError tee N/A -1 N/A n N/A xrange 5 N/A N/A result N/A tee abc n N/A N/A N/A self assertEqual N/A type result tuple N/A N/A N/A self assertEqual N/A len result n N/A N/A N/A self assertEqual N/A map list result N/A N/A N/A list abc n N/A N/A a b N/A tee abc N/A N/A c d N/A tee a N/A N/A t1 t2 N/A tee abc N/A tnew N/A type t1 N/A N/A N/A self assertRaises TypeError tnew N/A N/A N/A self assertRaises TypeError tnew 10 N/A t3 N/A tnew t1 N/A N/A N/A self assert_ N/A N/A list t3 N/A list t2 N/A list abc N/A N/A a b N/A tee N/A xrange 10 N/A p N/A proxy a N/A N/A N/A self assertEqual N/A getattr p __class__ N/A type b N/A a N/A test_StopIteration N/A N/A self N/A N/A N/A N/A N/A self assertRaises StopIteration N/A N/A izip next N/A f N/A chain cycle izip groupby N/A N/A N/A N/A self assertRaises StopIteration N/A N/A f N/A next N/A N/A N/A self assertRaises StopIteration N/A N/A f N/A StopNow next N/A N/A N/A self assertRaises StopIteration N/A N/A islice N/A None next N/A N/A N/A self assertRaises StopIteration N/A N/A islice N/A StopNow None next N/A N/A p q N/A tee N/A N/A N/A N/A self assertRaises StopIteration N/A p next N/A N/A N/A self assertRaises StopIteration N/A q next N/A N/A p q N/A tee N/A StopNow N/A N/A N/A self assertRaises StopIteration N/A p next N/A N/A N/A self assertRaises StopIteration N/A q next N/A N/A N/A self assertRaises StopIteration N/A N/A repeat None 0 next N/A f N/A ifilter ifilterfalse imap takewhile dropwhile starmap N/A N/A N/A N/A self assertRaises StopIteration N/A N/A f N/A N/A N/A x N/A x N/A next N/A N/A N/A self assertRaises StopIteration N/A N/A f N/A N/A N/A x N/A x N/A StopNow next N/A N/A TestGC N/A N/A unittest TestCase N/A makecycle N/A N/A self iterator container N/A N/A N/A N/A N/A container append iterator N/A N/A N/A iterator next N/A container iterator N/A test_chain N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A chain a a N/A test_cycle N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A cycle N/A N/A a 2 a N/A test_dropwhile N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A dropwhile bool N/A 0 a a a N/A test_groupby N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A groupby N/A N/A a 2 N/A N/A N/A x N/A x a N/A test_ifilter N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A ifilter N/A N/A N/A x N/A True N/A N/A a 2 a N/A test_ifilterfalse N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A ifilterfalse N/A N/A N/A x N/A False a a N/A test_izip N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A izip N/A N/A a 2 N/A N/A a 3 a N/A test_imap N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A imap N/A N/A N/A x N/A x N/A N/A a 2 a N/A test_islice N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A islice N/A N/A a 2 None a N/A test_repeat N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A repeat a a N/A test_starmap N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A starmap N/A N/A N/A N/A t t N/A N/A N/A a a 2 a N/A test_takewhile N/A N/A self N/A N/A N/A a N/A N/A N/A N/A self makecycle N/A takewhile bool N/A 1 0 a a a N/A N/A R N/A N/A seqn N/A N/A N/A Regular generator N/A i seqn N/A N/A N/A i N/A G N/A N/A N/A Sequence using __getitem__ __init__ N/A N/A self seqn N/A N/A N/A N/A self seqn seqn N/A __getitem__ N/A N/A self i N/A N/A N/A N/A N/A self seqn N/A i N/A N/A I N/A N/A N/A Sequence using iterator protocol __init__ N/A N/A self seqn N/A N/A N/A N/A self seqn seqn N/A N/A self i 0 N/A __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A N/A N/A self i N/A len N/A self seqn N/A N/A StopIteration N/A v N/A N/A self seqn N/A N/A self i N/A N/A self i 1 N/A v N/A N/A Ig N/A N/A N/A Sequence using iterator protocol defined with a generator __init__ N/A N/A self seqn N/A N/A N/A N/A self seqn seqn N/A N/A self i 0 N/A __iter__ N/A N/A self N/A N/A N/A val N/A self seqn N/A N/A N/A val N/A N/A X N/A N/A N/A Missing __getitem__ and __iter__ __init__ N/A N/A self seqn N/A N/A N/A N/A self seqn seqn N/A N/A self i 0 N/A next N/A N/A self N/A N/A N/A N/A N/A self i N/A len N/A self seqn N/A N/A StopIteration N/A v N/A N/A self seqn N/A N/A self i N/A N/A self i 1 N/A v N/A N/A N N/A N/A N/A Iterator missing next() __init__ N/A N/A self seqn N/A N/A N/A N/A self seqn seqn N/A N/A self i 0 N/A __iter__ N/A N/A self N/A N/A N/A self N/A N/A E N/A N/A N/A Test propagation of exceptions __init__ N/A N/A self seqn N/A N/A N/A N/A self seqn seqn N/A N/A self i 0 N/A __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A N/A 3 0 N/A N/A S N/A N/A N/A Test immediate stop __init__ N/A N/A self seqn N/A N/A N/A N/A __iter__ N/A N/A self N/A N/A N/A self N/A next N/A N/A self N/A N/A N/A StopIteration N/A N/A L N/A N/A seqn N/A N/A N/A Test multiple tiers of iterators N/A N/A chain N/A imap N/A N/A N/A x N/A x N/A R N/A Ig N/A G seqn N/A TestVariousIteratorArgs N/A N/A unittest TestCase N/A test_chain N/A N/A self N/A N/A N/A s N/A 123 N/A range 1000 N/A do 1.2 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A list N/A chain N/A g s N/A list N/A g s N/A N/A N/A self assertEqual N/A list N/A chain N/A g s N/A g s N/A N/A list N/A g s N/A list N/A g s N/A N/A N/A self assertRaises TypeError chain N/A X s N/A N/A N/A self assertRaises TypeError list N/A chain N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A chain N/A E s N/A test_cycle N/A N/A self N/A N/A N/A s N/A 123 N/A range 1000 N/A do 1.2 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A tgtlen N/A N/A len s 3 N/A expected N/A N/A list N/A g s 3 N/A actual N/A list N/A islice N/A cycle N/A g s tgtlen N/A N/A N/A self assertEqual actual expected N/A N/A N/A self assertRaises TypeError cycle N/A X s N/A N/A N/A self assertRaises TypeError list N/A cycle N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A cycle N/A E s N/A test_groupby N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 1000 N/A 7 11 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A k N/A N/A k sb N/A groupby N/A g s N/A list N/A g s N/A N/A N/A self assertRaises TypeError groupby N/A X s N/A N/A N/A self assertRaises TypeError list N/A groupby N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A groupby N/A E s N/A test_ifilter N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 1000 N/A 7 11 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A list N/A ifilter isEven N/A g s N/A filter isEven N/A g s N/A N/A N/A self assertRaises TypeError ifilter isEven N/A X s N/A N/A N/A self assertRaises TypeError list N/A ifilter isEven N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A ifilter isEven N/A E s N/A test_ifilterfalse N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 1000 N/A 7 11 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A list N/A ifilterfalse isEven N/A g s N/A filter isOdd N/A g s N/A N/A N/A self assertRaises TypeError ifilterfalse isEven N/A X s N/A N/A N/A self assertRaises TypeError list N/A ifilterfalse isEven N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A ifilterfalse isEven N/A E s N/A test_izip N/A N/A self N/A N/A N/A s N/A 123 N/A range 1000 N/A do 1.2 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A list N/A izip N/A g s N/A zip N/A g s N/A N/A N/A self assertEqual N/A list N/A izip N/A g s N/A g s N/A zip N/A g s N/A g s N/A N/A N/A self assertRaises TypeError izip N/A X s N/A N/A N/A self assertRaises TypeError list N/A izip N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A izip N/A E s N/A test_imap N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 100 N/A 7 11 N/A xrange 20 50 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A list N/A imap onearg N/A g s N/A map onearg N/A g s N/A N/A N/A self assertEqual N/A list N/A imap N/A operator pow N/A g s N/A g s N/A map N/A operator pow N/A g s N/A g s N/A N/A N/A self assertRaises TypeError imap onearg N/A X s N/A N/A N/A self assertRaises TypeError list N/A imap onearg N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A imap onearg N/A E s N/A test_islice N/A N/A self N/A N/A N/A s N/A 12345 N/A range 1000 N/A do 1.2 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A N/A self assertEqual N/A list N/A islice N/A g s 1 None 2 N/A N/A list N/A g s N/A 1 2 N/A N/A N/A self assertRaises TypeError islice N/A X s 10 N/A N/A N/A self assertRaises TypeError list N/A islice N/A N s 10 N/A N/A N/A self assertRaises ZeroDivisionError list N/A islice N/A E s 10 N/A test_starmap N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 100 N/A 7 11 N/A xrange 20 50 5 N/A N/A g N/A G I Ig S L R N/A N/A ss N/A zip s s N/A N/A N/A self assertEqual N/A list N/A starmap N/A operator pow N/A g ss N/A map N/A operator pow N/A g s N/A g s N/A N/A N/A self assertRaises TypeError starmap N/A operator pow N/A X ss N/A N/A N/A self assertRaises TypeError list N/A starmap N/A operator pow N/A N ss N/A N/A N/A self assertRaises ZeroDivisionError list N/A starmap N/A operator pow N/A E ss N/A test_takewhile N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 1000 N/A 7 11 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A tgt N/A N/A elem N/A g s N/A N/A N/A N/A isEven elem N/A N/A N/A N/A N/A tgt append elem N/A N/A N/A self assertEqual N/A list N/A takewhile isEven N/A g s tgt N/A N/A N/A self assertRaises TypeError takewhile isEven N/A X s N/A N/A N/A self assertRaises TypeError list N/A takewhile isEven N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A takewhile isEven N/A E s N/A test_dropwhile N/A N/A self N/A N/A N/A s N/A N/A range 10 N/A range 0 N/A range 1000 N/A 7 11 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A tgt N/A N/A elem N/A g s N/A N/A N/A N/A tgt N/A isOdd elem N/A N/A N/A N/A N/A tgt append elem N/A N/A N/A self assertEqual N/A list N/A dropwhile isOdd N/A g s tgt N/A N/A N/A self assertRaises TypeError dropwhile isOdd N/A X s N/A N/A N/A self assertRaises TypeError list N/A dropwhile isOdd N/A N s N/A N/A N/A self assertRaises ZeroDivisionError list N/A dropwhile isOdd N/A E s N/A test_tee N/A N/A self N/A N/A N/A s N/A 123 N/A range 1000 N/A do 1.2 N/A xrange 2000 2200 5 N/A N/A g N/A G I Ig S L R N/A N/A N/A it1 it2 N/A tee N/A g s N/A N/A N/A self assertEqual N/A list it1 N/A list N/A g s N/A N/A N/A self assertEqual N/A list it2 N/A list N/A g s N/A N/A N/A self assertRaises TypeError tee N/A X s N/A N/A N/A self assertRaises TypeError list N/A N/A tee N/A N s N/A 0 N/A N/A N/A self assertRaises ZeroDivisionError list N/A N/A tee N/A E s N/A 0 N/A N/A LengthTransparency N/A N/A unittest TestCase N/A test_repeat N/A N/A self N/A N/A test.test_iterlen len N/A N/A N/A self assertEqual N/A len N/A repeat None 50 50 N/A N/A N/A self assertRaises TypeError len N/A repeat None N/A N/A RegressionTests N/A N/A unittest TestCase N/A test_sf_793826 N/A N/A self N/A N/A mutatingtuple N/A N/A tuple1 f tuple2 N/A N/A g N/A N/A value first N/A N/A 1 N/A N/A first N/A N/A N/A first N/A N/A N/A f N/A N/A z next N/A value N/A N/A items N/A list tuple2 N/A N/A items N/A 1 1 N/A list tuple1 N/A gen N/A imap g items N/A z N/A izip N/A N/A gen N/A len tuple1 N/A N/A N/A z next N/A f N/A N/A t N/A N/A N/A T N/A T t N/A N/A first N/A N/A list T N/A N/A first N/A N/A N/A mutatingtuple N/A 1 2 3 f N/A 4 5 6 N/A second N/A list T N/A N/A N/A self assertEqual first second N/A test_sf_950057 N/A N/A self N/A N/A gen1 N/A N/A N/A N/A N/A N/A N/A hist append 0 N/A N/A 1 N/A N/A N/A hist append 1 N/A AssertionError N/A N/A N/A hist append 2 N/A gen2 N/A N/A x N/A N/A N/A N/A N/A hist append 3 N/A N/A 2 N/A N/A N/A hist append 4 N/A x N/A N/A StopIteration N/A N/A hist N/A N/A N/A N/A self assertRaises AssertionError list N/A chain N/A gen1 N/A gen2 False N/A N/A N/A self assertEqual hist N/A 0 1 N/A hist N/A N/A N/A N/A self assertRaises AssertionError list N/A chain N/A gen1 N/A gen2 True N/A N/A N/A self assertEqual hist N/A 0 1 N/A hist N/A N/A N/A N/A self assertRaises AssertionError list N/A cycle N/A gen1 N/A N/A N/A self assertEqual hist N/A 0 1 N/A N/A N/A libreftest  Doctest for examples in the library reference: libitertools.tex


>>> amounts = [120.15, 764.05, 823.14]
>>> for checknum, amount in izip(count(1200), amounts):
...     print 'Check %d is for $%.2f' % (checknum, amount)
...
Check 1200 is for $120.15
Check 1201 is for $764.05
Check 1202 is for $823.14

>>> import operator
>>> for cube in imap(operator.pow, xrange(1,4), repeat(3)):
...    print cube
...
1
8
27

>>> reportlines = ['EuroPython', 'Roster', '', 'alex', '', 'laura', '', 'martin', '', 'walter', '', 'samuele']
>>> for name in islice(reportlines, 3, None, 2):
...    print name.title()
...
Alex
Laura
Martin
Walter
Samuele

# >>> from operator import itemgetter
# >>> d = dict(a=1, b=2, c=1, d=2, e=1, f=2, g=3)
# >>> di = sorted(sorted(d.iteritems()), key=itemgetter(1))
# >>> for k, g in groupby(di, itemgetter(1)):
# ...     print k, map(itemgetter(0), g)
# ...
# 1 ['a', 'c', 'e']
# 2 ['b', 'd', 'f']
# 3 ['g']

# Find runs of consecutive numbers using groupby.  The key to the solution
# is differencing with a range so that consecutive numbers all appear in
# same group.
#>>> data = [ 1,  4,5,6, 10, 15,16,17,18, 22, 25,26,27,28]
# >>> for k, g in groupby(enumerate(data), lambda (i,x):i-x):
# ...     print map(operator.itemgetter(1), g)
# ...
# [1]
# [4, 5, 6]
# [10]
# [15, 16, 17, 18]
# [22]
# [25, 26, 27, 28]

>>> def take(n, seq):
...     return list(islice(seq, n))

>>> def enumerate(iterable):
...     return izip(count(), iterable)

>>> def tabulate(function):
...     "Return function(0), function(1), ..."
...     return imap(function, count())

>>> def iteritems(mapping):
...     return izip(mapping.iterkeys(), mapping.itervalues())

>>> def nth(iterable, n):
...     "Returns the nth item"
...     return list(islice(iterable, n, n+1))

>>> def all(seq, pred=None):
...     "Returns True if pred(x) is true for every element in the iterable"
...     for elem in ifilterfalse(pred, seq):
...         return False
...     return True

>>> def any(seq, pred=None):
...     "Returns True if pred(x) is true for at least one element in the iterable"
...     for elem in ifilter(pred, seq):
...         return True
...     return False

>>> def no(seq, pred=None):
...     "Returns True if pred(x) is false for every element in the iterable"
...     for elem in ifilter(pred, seq):
...         return False
...     return True

>>> def quantify(seq, pred=None):
...     "Count how many times the predicate is true in the sequence"
...     return sum(imap(pred, seq))

>>> def padnone(seq):
...     "Returns the sequence elements and then returns None indefinitely"
...     return chain(seq, repeat(None))

>>> def ncycles(seq, n):
...     "Returns the sequence elements n times"
...     return chain(*repeat(seq, n))

>>> def dotproduct(vec1, vec2):
...     return sum(imap(operator.mul, vec1, vec2))

>>> def flatten(listOfLists):
...     return list(chain(*listOfLists))

>>> def repeatfunc(func, times=None, *args):
...     "Repeat calls to func with specified arguments."
...     "   Example:  repeatfunc(random.random)"
...     if times is None:
...         return starmap(func, repeat(args))
...     else:
...         return starmap(func, repeat(args, times))

>>> def pairwise(iterable):
...     "s -> (s0,s1), (s1,s2), (s2, s3), ..."
...     a, b = tee(iterable)
...     try:
...         b.next()
...     except StopIteration:
...         pass
...     return izip(a, b)

This is not part of the examples but it tests to make sure the definitions
perform as purported.

>>> take(10, count())
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

>>> list(enumerate('abc'))
[(0, 'a'), (1, 'b'), (2, 'c')]

>>> list(islice(tabulate(lambda x: 2*x), 4))
[0, 2, 4, 6]

>>> nth('abcde', 3)
['d']

>>> all([2, 4, 6, 8], lambda x: x%2==0)
True

>>> all([2, 3, 6, 8], lambda x: x%2==0)
False

>>> any([2, 4, 6, 8], lambda x: x%2==0)
True

>>> any([1, 3, 5, 9], lambda x: x%2==0,)
False

>>> no([1, 3, 5, 9], lambda x: x%2==0)
True

>>> no([1, 2, 5, 9], lambda x: x%2==0)
False

>>> quantify(xrange(99), lambda x: x%2==0)
50

>>> a = [[1, 2, 3], [4, 5, 6]]
>>> flatten(a)
[1, 2, 3, 4, 5, 6]

>>> list(repeatfunc(pow, 5, 2, 3))
[8, 8, 8, 8, 8]

>>> import random
>>> take(5, imap(int, repeatfunc(random.random)))
[0, 0, 0, 0, 0]

>>> list(pairwise('abcd'))
[('a', 'b'), ('b', 'c'), ('c', 'd')]

>>> list(pairwise([]))
[]

>>> list(pairwise('a'))
[]

>>> list(islice(padnone('abc'), 0, 6))
['a', 'b', 'c', None, None, None]

>>> list(ncycles('abc', 3))
['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c']

>>> dotproduct([1,2,3], [4,5,6])
32

 N/A __test__ N/A libreftest libreftest test_main N/A N/A verbose N/A None N/A N/A test_classes N/A TestBasicOps TestVariousIteratorArgs TestGC RegressionTests LengthTransparency N/A N/A N/A test_support run_unittest test_classes N/A N/A verbose N/A hasattr sys gettotalrefcount N/A N/A gc N/A counts N/A N/A None 5 N/A i N/A xrange N/A len counts N/A N/A N/A N/A test_support run_unittest test_classes N/A N/A N/A gc collect N/A N/A counts N/A i N/A N/A sys gettotalrefcount N/A counts N/A N/A N/A test_support run_doctest N/A N/A sys modules N/A __name__ verbose N/A N/A N/A __name__ __main__ N/A N/A N/A test_main verbose True