Module ImportFrom alias Import alias alias alias Import alias identifier If AttributeLoad NameLoad attr body Import alias Import alias orelse Import alias identifier Import alias identifier Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Import alias Import alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd NameLoad Call NameLoad NameLoad Str body For NameStore AttributeLoad NameLoad attr body If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad NameLoad Index NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Pass If UnaryOpNot AttributeLoad NameLoad attr body TryExcept body Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num orelse Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Dict body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpMod Str NameLoad If Call NameLoad AttributeLoad NameLoad attr NameLoad body Raise AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd Call NameLoad AttributeLoad NameLoad attr NameLoad UnaryOpNot NameLoad body Raise AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TryExcept body Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot NameLoad body Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If Call NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad orelse Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise NameLoad decorator_list decorator_list Return Call NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str While CompareLt AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr While CompareGt AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Raise NameLoad Return Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignSub AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad NameLoad NameLoad NameLoad If CompareLtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr While CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr For NameStore Call NameLoad NameLoad body TryExcept body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Continue ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body With AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr 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 Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str While NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Break decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TryExcept body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Pass Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr TryExcept body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad name NameStore body Pass decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Break Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword ListLoad NameLoad With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Continue Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body With AttributeLoad NameLoad attr body AugAssignSub AttributeStore NameLoad attr Num AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad TryFinally body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore NameLoad TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Expr Call AttributeLoad NameLoad attr Str While UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Break Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str ExceptHandler type AttributeLoad NameLoad attr name NameStore body Pass finalbody Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str With AttributeLoad NameLoad attr body While CompareNotEq AttributeLoad NameLoad attr Str body If BoolOpOr CompareIn AttributeLoad NameLoad attr TupleLoad Str Str Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body While BoolOpAnd CompareNotEq AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body With AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str With AttributeLoad NameLoad attr body While CompareNotEq AttributeLoad NameLoad attr Str body If BoolOpOr CompareIn AttributeLoad NameLoad attr TupleLoad Str Str Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body While CompareNotEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With AttributeLoad NameLoad attr body AugAssignSub AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str Call NameLoad AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num FunctionDef arguments args NameParam defaults body Global identifier With NameLoad body Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore Num If NameLoad body Assign NameStore BinOpAdd BinOpAdd Call NameLoad NameLoad Str NameLoad orelse Assign NameStore NameLoad Return NameLoad decorator_list
N/A __future__ print_function N/A sys time os N/A ginga.util.six six N/A N/A six PY2 N/A N/A thread N/A Queue N/A N/A _thread thread N/A queue Queue N/A _swival 1e-06 N/A N/A N/A sys setswitchinterval _swival N/A threading N/A traceback ginga.util.six.moves map zip TaskError N/A Exception N/A N/A Exception generated for task errors N/A N/A TaskTimeout N/A TaskError N/A N/A Exception generated when timing out waiting on a task N/A N/A UserTaskException N/A Exception N/A N/A N/A Task N/A object N/A N/A This class implements a basic Task (command) abstraction.  The
    methods define the interface for starting, cancelling, waiting on a
    task, etc.
     __init__ N/A N/A self N/A N/A N/A 
        The constructor sets bare essentials for a Task object.  See the
        initialize() and start() methods.
         N/A N/A self ev_done N/A N/A threading Event N/A N/A self callbacks N/A N/A Queue Queue N/A N/A self tag None N/A N/A self logger None N/A N/A self threadPool None N/A N/A self tlock N/A N/A threading RLock N/A N/A self shares N/A logger threadPool shares N/A N/A N/A N/A super Task self __init__ N/A initialize N/A N/A self taskParent override N/A None N/A N/A This method initializes a task for (re)use.  taskParent is the
        object instance of the parent task, or a 'task environment' (something
        that runs tasks).
        If subclass overrides this method, it should call the superclass
        method at some point.

        - Copy shared data from taskParent, overriding items from _override_
          if they are present there ('contagion' of task values).
        - Generate a unique tag, to be used with the Gen2 Monitor.
        - Clear done event, initialize times and result.
         N/A N/A taskParent N/A hasattr taskParent shares N/A N/A var N/A taskParent shares N/A N/A N/A override N/A var override N/A N/A N/A N/A self __dict__ N/A var N/A override N/A var N/A N/A N/A N/A self __dict__ N/A var N/A N/A taskParent __dict__ N/A var N/A N/A N/A N/A N/A self tag N/A N/A N/A N/A N/A self tag N/A N/A N/A str taskParent . N/A N/A N/A self tagger get_tag self N/A N/A N/A N/A N/A self tag N/A get_tag taskParent N/A N/A N/A N/A self ev_done clear N/A N/A self starttime N/A N/A time time N/A N/A self endtime 0 N/A N/A self totaltime 0 N/A N/A self result None N/A N/A self tag N/A start N/A N/A self N/A N/A N/A This method starts a task executing and returns immediately.
        Subclass should override this method, if it has an asynchronous
        way to start the task and return immediately.
         N/A N/A self threadPool N/A N/A N/A N/A N/A self threadPool addTask self N/A N/A N/A time sleep 0 N/A N/A N/A TaskError N/A start(): nothing to start for task %s self N/A init_and_start N/A N/A self taskParent override N/A N/A N/A N/A Convenience method to initialize and start a task.
         N/A tag N/A N/A self initialize taskParent override override N/A N/A N/A self start N/A tag N/A check_state N/A N/A self N/A N/A N/A Abstract method that should check for pause, cancellation, or
        any other sort of preemption event.
         N/A N/A extend_shares N/A N/A self varlist N/A N/A N/A shares N/A set N/A self shares N/A var varlist N/A N/A N/A hasattr self var N/A N/A N/A N/A shares add var N/A N/A self shares shares N/A stop N/A N/A self N/A N/A N/A This method cancels an executing task (if possible).
        Subclass should override this method.
        Return True if task could be cancelled, False if not?
         N/A N/A TaskError N/A Task %s: subclass should override stop() method! self N/A pause N/A N/A self N/A N/A N/A This method pauses an executing task (if possible).
        Subclass should override this method.
        Return True if task could be paused, False if not?
         N/A N/A TaskError N/A Task %s: subclass should override pause() method! self N/A resume N/A N/A self N/A N/A N/A This method resumes an executing task (if possible).
        Subclass should override this method, should not call super.resume().
        Return True if task could be resumed, False if not?
         N/A N/A TaskError N/A Task %s: subclass should override resume() method! self N/A wait N/A N/A self timeout N/A None N/A N/A This method waits for an executing task to finish.
        Subclass can override this method if necessary.
         N/A N/A N/A N/A self ev_done wait timeout timeout N/A N/A N/A N/A N/A self ev_done isSet N/A N/A N/A TaskTimeout N/A Task %s timed out. self N/A N/A isinstance N/A self result Exception N/A N/A N/A self result N/A N/A self result N/A step N/A N/A self N/A N/A N/A If a task has a way of stepping through an operation.  It can
        implement this method.  Subclass should not call super.step().
         N/A N/A TaskError N/A Task %s: subclass should override step() method! self N/A execute N/A N/A self N/A N/A N/A This method does the work of a task (if executed by the
        thread pool) and returns when it is finished.  *** Subclass should
        override this method! ***  It should take no arguments, and can
        return anything.
         N/A N/A TaskError N/A Task %s: subclass should override execute() method! self N/A done N/A N/A self result noraise N/A False N/A N/A This method is called when a task has finished executing.
        Subclass can override this method if desired, but should call
        superclass method at the end.
         N/A N/A N/A N/A self ev_done isSet N/A N/A N/A N/A isinstance N/A self result Exception N/A noraise N/A N/A N/A self result N/A N/A self result N/A N/A self endtime N/A N/A time time N/A N/A N/A N/A self totaltime N/A N/A self endtime N/A self starttime N/A N/A N/A AttributeError N/A N/A N/A self totaltime 0.0 N/A N/A self result result N/A N/A N/A N/A self ev_done set N/A N/A N/A self do_callbacks N/A N/A N/A isinstance result Exception N/A noraise N/A N/A result N/A result N/A register_callback N/A N/A self fn args N/A None N/A N/A This method is called to register a callback function to be
        called when a task terminates.
        Subclass should probably not override this method.
         N/A N/A args None N/A N/A args N/A N/A N/A callable fn N/A N/A N/A N/A N/A self callbacks put N/A fn args N/A N/A N/A TaskError N/A Function argument is not a callable: %s N/A str fn N/A do_callbacks N/A N/A self N/A N/A N/A Makes callbacks on all registered functions waiting on this task.
         N/A N/A N/A N/A N/A self callbacks empty N/A N/A N/A fn rest N/A N/A N/A self callbacks get N/A args N/A N/A self result N/A N/A N/A args extend rest N/A N/A fn args N/A get_tag N/A N/A self N/A N/A N/A This is only valid AFTER initialize() has been called on the task.
         N/A N/A self tag N/A __str__ N/A N/A self N/A N/A N/A Returns a string representation of a task (e.g. for debugging).
        Subclass can override this method if desired.
         N/A N/A str N/A self tag N/A __lt__ N/A N/A self other N/A N/A N/A False N/A getExecutionTime N/A N/A self N/A N/A N/A N/A self totaltime N/A runTask N/A N/A self task timeout N/A None N/A N/A Run a child task to completion.  Returns the result of
        the child task.
         N/A N/A N/A task initialize self N/A N/A N/A task start N/A N/A N/A time sleep 0 N/A res N/A N/A task wait timeout timeout N/A res N/A run N/A N/A self task timeout N/A None N/A N/A Run a child task to completion.  Returns the result of
        the child task.  Simply calls runTask().
         N/A N/A N/A self runTask task timeout timeout N/A N/A printTask N/A Task N/A N/A Simple task that prints msg. __init__ N/A N/A self msg N/A N/A N/A N/A self msg msg N/A N/A N/A N/A super printTask self __init__ N/A execute N/A N/A self N/A N/A N/A N/A print N/A self msg N/A N/A sleepTask N/A Task N/A N/A Simple task that sleeps for delay seconds. __init__ N/A N/A self delay N/A N/A N/A N/A self delay delay N/A N/A N/A N/A super sleepTask self __init__ N/A execute N/A N/A self N/A N/A N/A N/A N/A N/A self ev_done wait timeout N/A self delay N/A N/A FuncTask N/A Task N/A N/A Simple task that calls func and returns func's return value. __init__ N/A N/A self func args kwdargs logger N/A None N/A N/A N/A self func func N/A N/A self args args N/A N/A self kwdargs kwdargs N/A N/A self logger logger N/A N/A N/A N/A super FuncTask self __init__ N/A execute N/A N/A self N/A N/A N/A N/A self logger N/A N/A s_args N/A str N/A self args N/A N/A N/A len s_args 500 N/A N/A s_args N/A s_args N/A 500 N/A s_kwdargs N/A str N/A self kwdargs N/A N/A N/A len s_kwdargs 500 N/A N/A s_kwdargs N/A s_kwdargs N/A 500 N/A N/A N/A N/A self logger debug N/A Running %s(%s, %s) N/A N/A N/A self func __name__ s_args s_kwdargs N/A s_args None N/A s_kwdargs None N/A N/A N/A res N/A N/A self func N/A self args N/A self kwdargs N/A N/A N/A self done res N/A N/A self logger N/A N/A N/A N/A N/A self logger debug N/A Function returned %s N/A str res N/A N/A N/A Exception N/A e N/A N/A N/A self logger N/A N/A N/A N/A N/A self logger error N/A Task '%s' terminated with exception: %s N/A N/A str self N/A str e N/A N/A N/A N/A type value tb N/A N/A sys exc_info N/A N/A N/A N/A self logger error N/A Traceback:
%s N/A N/A join N/A N/A traceback format_tb tb N/A tb None N/A N/A N/A Exception N/A N/A N/A N/A N/A self logger error Traceback information unavailable. N/A N/A N/A self done e N/A N/A FuncTask2 N/A FuncTask N/A N/A Simple task that calls func and returns func's return value.
    This version lets you specify the positional and keyword arguments
    more naturally 'in place' in the constructor.
     __init__ N/A N/A self func N/A args kwdargs N/A N/A N/A N/A N/A super FuncTask2 self __init__ func args kwdargs N/A set_logger N/A N/A self logger N/A N/A N/A N/A self logger logger N/A N/A make_tasker N/A N/A func N/A N/A N/A make_tasker takes a callable (function, method, etc.) and returns
    a new factory function for generating tasks.  Each factory function is
    designed to consume its arguments and return a task that, when executed,
    will call the function upon the arguments.

    TODO: deprecate this and just use FuncTask, which is easier to
    understand--must change a number of programs first.
     anonFunc N/A N/A N/A args kwdargs N/A anonTask N/A Task N/A execute N/A N/A self N/A N/A N/A N/A N/A N/A self logger debug N/A Executing fn %s func N/A N/A N/A val N/A func args kwdargs N/A N/A N/A N/A self logger debug N/A Done executing fn %s func N/A val N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger error N/A fn %s raised exception: %s N/A func N/A str e N/A e N/A N/A N/A N/A anonTask N/A N/A anonFunc N/A SequentialTaskset N/A Task N/A N/A Compound task that runs a series of tasks sequentially.
     __init__ N/A N/A self taskseq N/A N/A N/A N/A N/A N/A super SequentialTaskset self __init__ N/A N/A self tasklist N/A list taskseq N/A initialize N/A N/A self taskParent N/A kwdargs N/A N/A N/A self index 0 N/A N/A N/A N/A super SequentialTaskset self initialize taskParent kwdargs N/A step N/A N/A self N/A N/A N/A Run the next child task and wait for completion (no timeout). N/A N/A N/A self index N/A len N/A self tasklist N/A N/A N/A TaskError N/A step(): sequential compound task %s finished self N/A N/A N/A self check_state N/A N/A self task N/A N/A self tasklist N/A N/A self index N/A N/A self index 1 N/A N/A N/A self runTask N/A self task N/A execute N/A N/A self N/A N/A N/A Run all child tasks, in order, waiting for completion of each.
        Return the result of the final child task's execution.
         N/A N/A N/A self index N/A len N/A self tasklist N/A N/A res N/A N/A self step N/A N/A N/A N/A self logger debug N/A SeqSet task %i has completed with result %s N/A N/A self index res N/A res N/A stop N/A N/A self N/A N/A N/A Interrupt/cancel execution, but will allow current child task
        to complete. N/A N/A N/A N/A N/A N/A self task stop N/A N/A N/A TaskError N/A e N/A N/A N/A N/A N/A self logger error N/A Error cancelling child task: %s N/A str e N/A addTask N/A N/A self task N/A N/A N/A Append a task to the task sequence.  If the SequentialTaskset has
        already completed execution, this will do nothing unless it is
        restarted (initialize(), start()).
         N/A N/A N/A N/A self tasklist append task N/A N/A oldConcurrentAndTaskset N/A Task N/A N/A Compound task that runs a set of tasks concurrently, and does not
    return until they all terminate.
     __init__ N/A N/A self taskseq N/A N/A N/A N/A N/A N/A super oldConcurrentAndTaskset self __init__ N/A N/A self taskseq taskseq N/A N/A self ev_intr N/A N/A threading Event N/A N/A self regcond N/A N/A threading Condition N/A execute N/A N/A self N/A N/A N/A Run all child tasks concurrently in separate threads.
        Return 0 after all child tasks have completed execution.
         N/A N/A self count 0 N/A N/A self taskset N/A N/A N/A self results N/A N/A N/A self totaltime N/A N/A time time N/A task N/A self taskseq N/A N/A N/A N/A N/A self taskset append task N/A N/A N/A task register_callback N/A self child_done args N/A N/A self count task N/A N/A self count 1 N/A N/A self numtasks N/A self count N/A N/A self regcond N/A N/A task N/A self taskset N/A N/A N/A N/A task initialize self N/A N/A N/A task start N/A N/A self totaltime N/A N/A N/A time time N/A self totaltime N/A N/A N/A self count 0 N/A N/A N/A N/A N/A self regcond wait N/A key N/A N/A N/A self results keys N/A N/A value N/A N/A self results N/A key N/A N/A isinstance value Exception N/A N/A N/A count task key N/A N/A N/A N/A self logger error N/A Child task %s terminated with exception: %s N/A N/A task tag N/A str value N/A value N/A 0 N/A child_done N/A N/A self result count task N/A N/A N/A Acquire the condition variable for the compound task object.
        Decrement the thread count.  If we are the last thread to
        finish, release compound task thread, which is blocked in execute().
         N/A N/A self regcond N/A N/A N/A N/A N/A self logger debug N/A Concurrent task %d/%d has completed N/A N/A self count N/A self numtasks N/A N/A self count 1 N/A N/A N/A N/A self taskset remove task N/A N/A self totaltime N/A N/A task getExecutionTime N/A N/A N/A self results N/A N/A count task result N/A N/A N/A self count 0 N/A N/A N/A N/A N/A self regcond notifyAll N/A stop N/A N/A self N/A N/A N/A Call stop() on all child tasks, and ignore TaskError exceptions.
        Behavior depends on what the child tasks' stop() method does. N/A task N/A self taskset N/A N/A N/A N/A N/A N/A task stop N/A N/A N/A TaskError N/A e N/A N/A N/A addTask N/A N/A self task N/A N/A N/A Add a task to the task set.
         N/A N/A self regcond N/A N/A N/A N/A N/A self taskset append task N/A N/A N/A task register_callback N/A self child_done args N/A N/A self numtasks task N/A N/A self numtasks 1 N/A N/A self count 1 N/A N/A N/A task initialize self N/A N/A N/A task start N/A N/A newConcurrentAndTaskset N/A Task N/A N/A Compound task that runs a set of tasks concurrently, and does not
    return until they all terminate.
     __init__ N/A N/A self taskseq N/A N/A N/A N/A N/A N/A super newConcurrentAndTaskset self __init__ N/A N/A self taskseq taskseq N/A N/A self idletime 0.001 N/A N/A self _lock_c N/A N/A threading RLock N/A execute N/A N/A self N/A N/A N/A Run all child tasks concurrently in separate threads.
        Return last result after all child tasks have completed execution.
         N/A N/A self _lock_c N/A N/A N/A self count 0 N/A N/A self numtasks 0 N/A N/A self taskset N/A N/A N/A self results N/A N/A N/A self totaltime N/A N/A time time N/A task N/A self taskseq N/A N/A N/A N/A N/A self taskset append task N/A N/A self numtasks 1 N/A N/A N/A task init_and_start self N/A num_tasks N/A N/A self getNumTasks N/A N/A num_tasks 0 N/A N/A N/A N/A self check_state N/A i N/A range num_tasks N/A N/A N/A N/A N/A N/A task N/A N/A self getTask i N/A N/A N/A IndexError N/A N/A N/A res N/A N/A task wait timeout N/A self idletime N/A N/A N/A self child_done res task N/A N/A N/A TaskTimeout N/A N/A N/A N/A Exception N/A e N/A N/A N/A N/A self child_done e task N/A N/A num_tasks N/A N/A self getNumTasks N/A key N/A N/A N/A self results keys N/A N/A value N/A N/A self results N/A key N/A N/A isinstance value Exception N/A N/A N/A count task key N/A N/A N/A N/A self logger error N/A Child task %s terminated with exception: %s N/A N/A task tag N/A str value N/A value N/A value N/A child_done N/A N/A self result task N/A N/A N/A N/A self _lock_c N/A N/A N/A self count 1 N/A N/A N/A N/A self logger debug N/A Concurrent task %d/%d has completed N/A N/A self count N/A self numtasks N/A N/A N/A N/A self taskset remove task N/A N/A self totaltime N/A N/A task getExecutionTime N/A N/A N/A self results N/A N/A N/A self count task result N/A stop N/A N/A self N/A N/A N/A Call stop() on all child tasks, and ignore TaskError exceptions.
        Behavior depends on what the child tasks' stop() method does. N/A N/A self _lock_c N/A N/A task N/A self taskset N/A N/A N/A N/A N/A N/A task stop N/A N/A N/A TaskError N/A e N/A N/A N/A addTask N/A N/A self task N/A N/A N/A Add a task to the task set.
         N/A N/A N/A task initialize self N/A N/A N/A task start N/A N/A self _lock_c N/A N/A N/A self numtasks 1 N/A N/A N/A N/A self taskset append task N/A getTask N/A N/A self i N/A N/A N/A N/A self _lock_c N/A N/A N/A N/A self taskset N/A i N/A getNumTasks N/A N/A self N/A N/A N/A Get the set of active tasks.
         N/A N/A self _lock_c N/A N/A N/A len N/A self taskset N/A N/A ConcurrentAndTaskset N/A newConcurrentAndTaskset N/A N/A N/A QueueTaskset N/A Task N/A N/A Compound task that runs a set of tasks that it reads from a queue
    concurrently.  If _waitflag_ is True, then it will run each task to
    completion before starting the next task.
     __init__ N/A N/A self queue waitflag timeout ev_quit N/A True 0.1 None N/A N/A N/A N/A N/A super QueueTaskset self __init__ N/A N/A self queue queue N/A N/A self waitflag waitflag N/A N/A self lock N/A N/A threading RLock N/A N/A self timeout timeout N/A N/A self task None N/A N/A self ev_cancel N/A N/A threading Event N/A N/A self ev_pause N/A N/A threading Event N/A N/A ev_quit None N/A N/A ev_quit N/A N/A threading Event N/A N/A self ev_quit ev_quit N/A flush N/A N/A self N/A N/A N/A N/A N/A N/A self logger debug Flushing queue. N/A True N/A N/A N/A N/A N/A N/A N/A self queue get block False N/A N/A N/A N/A Queue Empty N/A N/A N/A stop N/A N/A self N/A N/A N/A N/A N/A self flush N/A N/A N/A N/A self task N/A N/A N/A N/A N/A self task stop N/A N/A N/A TaskError N/A e N/A N/A N/A N/A N/A N/A self queue put None N/A stop_child N/A N/A self N/A N/A N/A N/A N/A self flush N/A N/A N/A N/A self task N/A N/A N/A N/A N/A self task stop N/A N/A N/A TaskError N/A e N/A N/A N/A execute N/A N/A self N/A N/A N/A N/A self count 0 N/A N/A self totaltime 0 N/A N/A N/A N/A self logger debug Queue Taskset starting N/A N/A N/A N/A N/A self ev_quit isSet N/A N/A N/A N/A N/A N/A self check_state N/A task N/A N/A N/A self queue get block True timeout N/A self timeout N/A N/A task None N/A N/A N/A N/A self task task N/A N/A N/A task register_callback N/A self child_done args N/A task N/A N/A self lock N/A N/A N/A self count 1 N/A N/A N/A N/A self ev_cancel clear N/A N/A N/A N/A N/A task initialize self N/A N/A N/A N/A self logger debug N/A Starting task '%s' N/A str task N/A N/A N/A task start N/A N/A self waitflag N/A N/A res N/A N/A task wait N/A N/A N/A N/A self logger debug N/A Task %s terminated with result %s N/A N/A str task N/A str res N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger error N/A Task '%s' terminated with exception: %s N/A N/A str task N/A str e N/A N/A N/A N/A type value tb N/A N/A sys exc_info N/A N/A N/A N/A self logger debug N/A Traceback:
%s N/A N/A join N/A N/A traceback format_tb tb N/A tb None N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger debug Traceback information unavailable. N/A N/A N/A task done e noraise True N/A N/A N/A N/A Queue Empty N/A N/A N/A N/A N/A N/A self logger debug Queue Taskset terminating N/A N/A self result N/A child_done N/A N/A self result task N/A N/A N/A N/A self lock N/A N/A N/A self count 1 N/A N/A self totaltime N/A N/A task getExecutionTime N/A N/A self result result N/A cancel N/A N/A self N/A N/A N/A N/A N/A self flush N/A N/A N/A N/A super QueueTaskset self cancel N/A addTask N/A N/A self task N/A N/A N/A N/A N/A N/A self queue put task N/A N/A PriorityQueue N/A N/A Queue PriorityQueue N/A N/A N/A _WorkerReset N/A Exception N/A N/A Local exception used to reset a worker thread. N/A N/A WorkerThread N/A object N/A N/A Container for a thread in which to call the execute() method of a task.
    A WorkerThread object waits on the task queue, executes a task when it
    appears, and repeats.  A call to start() is necessary to start servicing
    the queue, and a call to stop() will terminate the service.
     __init__ N/A N/A self queue logger ev_quit timeout tpool N/A None None 0.2 None N/A N/A N/A self queue queue N/A N/A self logger logger N/A N/A self timeout timeout N/A ev_quit N/A N/A N/A self ev_quit ev_quit N/A N/A N/A self ev_quit N/A N/A threading Event N/A N/A self tpool tpool N/A N/A self lock N/A N/A threading RLock N/A N/A self status stopped N/A N/A self time_start 0.0 N/A setstatus N/A N/A self status N/A N/A N/A Sets our status field so that others can inquire what we are doing.
        Set of status:
          starting, idle
         N/A N/A self lock N/A N/A N/A self status status N/A getstatus N/A N/A self N/A N/A N/A Returns our status--a string describing what we are doing.
         N/A N/A self lock N/A N/A N/A N/A self status N/A self time_start N/A execute N/A N/A self task N/A N/A N/A Execute a task.
         N/A taskid N/A str task N/A res None N/A N/A N/A N/A self time_start N/A N/A time time N/A N/A N/A self setstatus N/A executing %s taskid N/A N/A N/A N/A self logger debug N/A now executing task '%s' taskid N/A N/A N/A res N/A N/A task execute N/A N/A N/A UserTaskException N/A e N/A N/A res e N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger error N/A Task '%s' raised exception: %s N/A N/A str task N/A str e N/A res e N/A N/A N/A N/A type value tb N/A N/A sys exc_info N/A N/A N/A N/A self logger debug N/A Traceback:
%s N/A N/A join N/A N/A traceback format_tb tb N/A tb None N/A N/A N/A Exception N/A e N/A N/A N/A N/A N/A self logger debug Traceback information unavailable. N/A N/A N/A N/A N/A self logger debug N/A done executing task '%s' N/A str task N/A N/A N/A self setstatus N/A cleaning %s taskid N/A N/A N/A task done res noraise True N/A N/A self time_start 0.0 N/A N/A N/A self setstatus idle N/A taskloop N/A N/A self N/A N/A N/A N/A N/A self setstatus starting N/A N/A N/A N/A self logger debug Starting worker thread loop. N/A N/A self tpool N/A N/A N/A N/A N/A self tpool register_up N/A N/A N/A N/A N/A self setstatus idle N/A N/A N/A N/A N/A self ev_quit isSet N/A N/A N/A N/A N/A priority task N/A N/A N/A self queue get block True timeout N/A self timeout N/A N/A task None N/A N/A N/A N/A N/A self queue put N/A priority task N/A N/A N/A N/A self execute task N/A N/A N/A _WorkerReset N/A N/A N/A N/A N/A self logger info Worker reset! N/A N/A N/A Queue Empty N/A e N/A N/A N/A N/A N/A N/A N/A self logger debug Stopping worker thread loop. N/A N/A self tpool N/A N/A N/A N/A N/A self tpool register_dn N/A N/A N/A self setstatus stopped N/A start N/A N/A self N/A N/A N/A N/A self thread N/A N/A threading Thread target N/A self taskloop args N/A N/A N/A N/A N/A self thread start N/A stop N/A N/A self N/A N/A N/A N/A N/A N/A self queue put N/A priority task N/A N/A N/A N/A self ev_quit set N/A N/A ThreadPool N/A object N/A N/A A simple thread pool for executing tasks asynchronously.

    self.status states:
        down    no threads are ready for service
        up      all threads are ready for service
        start   threads are starting, but not all of them are up yet
        stop    threads are stopping, but not all of them are down yet
     __init__ N/A N/A self numthreads logger ev_quit workerClass N/A 1 None None WorkerThread N/A N/A N/A self numthreads numthreads N/A N/A self logger logger N/A ev_quit N/A N/A N/A self ev_quit ev_quit N/A N/A N/A self ev_quit N/A N/A threading Event N/A N/A self lock N/A N/A threading RLock N/A N/A self workerClass workerClass N/A N/A self queue N/A PriorityQueue N/A N/A self workers N/A N/A N/A self tids N/A N/A N/A self regcond N/A N/A threading Condition N/A N/A self runningcount 0 N/A N/A self status down N/A startall N/A N/A self wait N/A False kwdargs N/A N/A Start all of the threads in the thread pool.  If _wait_ is True
        then don't return until all threads are up and running.  Any extra
        keyword arguments are passed to the worker thread constructor.
         N/A N/A N/A N/A self logger debug startall called N/A N/A self regcond N/A N/A N/A N/A self status down N/A N/A N/A N/A N/A self status N/A start up N/A N/A N/A self ev_quit isSet N/A N/A N/A N/A N/A self logger error ignoring duplicate request to start thread pool N/A N/A N/A N/A N/A self logger debug N/A waiting for threads: count=%d N/A self runningcount N/A N/A N/A N/A self regcond wait N/A N/A N/A N/A self ev_quit isSet N/A N/A N/A N/A self runningcount 0 N/A N/A self status start N/A N/A self workers N/A N/A wait N/A N/A tpool self N/A N/A tpool None N/A N/A N/A N/A self logger debug starting threads in thread pool N/A i N/A range N/A self numthreads N/A N/A t N/A N/A self workerClass N/A self queue logger N/A self logger ev_quit N/A self ev_quit tpool tpool kwdargs N/A N/A N/A N/A self workers append t N/A N/A N/A t start N/A wait N/A N/A N/A N/A N/A self status up N/A N/A N/A N/A self ev_quit isSet N/A N/A N/A N/A N/A self logger debug N/A waiting for threads: count=%d N/A self runningcount N/A N/A N/A N/A self regcond wait N/A N/A N/A N/A self logger debug startall done N/A addThreads N/A N/A self numthreads N/A kwdargs N/A N/A N/A self regcond N/A N/A N/A N/A N/A self logger debug N/A adding %d threads to thread pool numthreads N/A i N/A range numthreads N/A N/A t N/A N/A self workerClass N/A self queue logger N/A self logger ev_quit N/A self ev_quit tpool N/A self tpool kwdargs N/A N/A N/A N/A self workers append t N/A N/A N/A t start N/A N/A self numthreads numthreads N/A stopall N/A N/A self wait N/A False N/A N/A Stop all threads in the worker pool.  If _wait_ is True
        then don't return until all threads are down.
         N/A N/A N/A N/A self logger debug stopall called N/A N/A self regcond N/A N/A N/A N/A self status up N/A N/A N/A N/A N/A self status N/A stop down N/A N/A N/A self ev_quit isSet N/A N/A N/A N/A N/A self logger warning ignoring duplicate request to stop thread pool. N/A N/A N/A N/A N/A self logger debug N/A waiting for threads: count=%d N/A self runningcount N/A N/A N/A N/A self regcond wait N/A N/A N/A N/A self logger debug stopping threads in thread pool N/A N/A self status stop N/A N/A N/A N/A self ev_quit set N/A wait N/A N/A N/A N/A self status down N/A N/A N/A N/A N/A self logger debug N/A waiting for threads: count=%d N/A self runningcount N/A N/A N/A N/A self regcond wait N/A N/A N/A N/A self logger debug stopall done N/A workerStatus N/A N/A self N/A N/A N/A N/A list N/A map N/A N/A N/A t N/A N/A N/A t getstatus N/A self workers N/A addTask N/A N/A self task priority N/A 0 N/A N/A Add a task to the queue of tasks.

        The task will be executed in a worker thread as soon as one is available.
        Tasks are executed in first-come-first-served order.
         N/A N/A N/A N/A self queue put N/A priority task N/A delTask N/A N/A self taskid N/A N/A N/A N/A N/A N/A self logger error delTask not yet implemented N/A purgeTasks N/A N/A self N/A N/A N/A N/A N/A N/A self logger error purgeTasks not yet implemented N/A register_up N/A N/A self N/A N/A N/A Called by WorkerThread objects to register themselves.

        Acquire the condition variable for the WorkerThread objects.
        Increment the running-thread count.  If we are the last thread to
        start, set status to 'up'.  This allows startall() to complete
        if it was called with wait=True.
         N/A N/A self regcond N/A N/A N/A self runningcount 1 N/A tid N/A N/A thread get_ident N/A N/A N/A N/A self tids append tid N/A N/A N/A N/A self logger debug N/A register_up: (%d) count is %d N/A tid N/A self runningcount N/A N/A N/A self runningcount N/A self numthreads N/A N/A N/A self status up N/A N/A N/A N/A self regcond notify N/A register_dn N/A N/A self N/A N/A N/A Called by WorkerThread objects to register themselves.

        Acquire the condition variable for the WorkerThread objects.
        Decrement the running-thread count.  If we are the last thread to
        start, release the ThreadPool thread, which is stuck in start()
         N/A N/A self regcond N/A N/A N/A self runningcount 1 N/A tid N/A N/A thread get_ident N/A N/A N/A N/A self tids remove tid N/A N/A N/A N/A self logger debug N/A register_dn: count_dn is %d N/A self runningcount N/A N/A N/A N/A self logger debug N/A register_dn: remaining: %s N/A str N/A self tids N/A N/A N/A self runningcount 0 N/A N/A N/A self status down N/A N/A N/A N/A self regcond notify N/A N/A N/A _lock_seqnum N/A N/A threading Lock N/A _count_seqnum 0 get_tag N/A N/A taskParent N/A N/A N/A _count_seqnum N/A _lock_seqnum N/A N/A generic_id N/A task%d _count_seqnum N/A _count_seqnum 1 N/A taskParent N/A N/A tag N/A N/A N/A str taskParent . generic_id N/A N/A tag generic_id N/A tag N/A