Module ImportFrom alias Import alias Import alias Import alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Global identifier If NameLoad body Print TupleLoad Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice If NameLoad body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Call NameLoad NameLoad body Print TupleLoad Str NameLoad Print TupleLoad Str Call NameLoad NameLoad Call NameLoad NameLoad Print NameLoad Print NameLoad Print NameLoad AugAssignAdd NameStore Num Return For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareIsNot NameLoad NameLoad body Print TupleLoad Str NameLoad Print TupleLoad Str NameLoad NameLoad NameLoad Print NameLoad Print NameLoad Print NameLoad AugAssignAdd NameStore Num Return decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num For NameStore Call NameLoad Num Num body Assign NameStore BinOpPow Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad Num BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num Num ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd AttributeLoad NameLoad attr CompareLt Call AttributeLoad NameLoad attr Num body If NameLoad body Print TupleLoad Str NameLoad NameLoad Raise NameLoad Return CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareLt AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list For NameStore NameLoad body Assign NameStore Call NameLoad Call NameLoad NameLoad If NameLoad body Print TupleLoad Str NameLoad Assign NameStore SubscriptLoad NameLoad Slice Expr Call NameLoad Str NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Expr Call NameLoad Str NameLoad NameLoad Lambda arguments args NameParam NameParam defaults BinOpSub CompareGt NameLoad NameLoad CompareLt NameLoad NameLoad If NameLoad body Print Str Print Str Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr keyword Call NameLoad Lambda arguments args NameParam NameParam defaults BinOpSub Call NameLoad BinOpMult Call AttributeLoad NameLoad attr Num Num Expr Call NameLoad Str NameLoad NameLoad If CompareGtE Call NameLoad NameLoad Num body FunctionDef arguments args NameParam defaults body Raise NameLoad decorator_list Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call NameLoad Str NameLoad NameLoad Assign NameStore ListComp Call NameLoad Call AttributeLoad NameLoad attr Num NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore ListComp TupleLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Expr Call NameLoad Str NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body ClassDef bases body FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd NameLoad CompareLt Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Num Return CompareLt Call AttributeLoad NameLoad attr Num decorator_list decorator_list Assign NameStore ListComp Call NameLoad comprehension NameStore Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call NameLoad Num body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Return BinOpSub CompareGt NameLoad NameLoad CompareLt NameLoad NameLoad decorator_list Assign NameStore ListLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Delete SubscriptDel NameLoad Slice Return BinOpSub CompareGt NameLoad NameLoad CompareLt NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Call NameLoad NameLoad Assign NameStore ListLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return BinOpSub CompareGt NameLoad NameLoad CompareLt NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam NameParam defaults Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr Num NameLoad comprehension NameStore Call NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num Num Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults BinOpDiv Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num FunctionDef arguments args NameParam defaults body Delete SubscriptDel NameLoad Slice Assign SubscriptStore NameLoad Slice Call NameLoad Num Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel NameLoad Slice Assign SubscriptStore NameLoad Slice Call NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareLt Call NameLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body If CompareGt NameLoad Num body Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Delete SubscriptDel NameLoad Slice Assign SubscriptStore NameLoad Slice Call NameLoad Call NameLoad Num decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad Call AttributeLoad NameLoad attr Num NameLoad comprehension NameStore Call NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice Assign NameStore SubscriptLoad NameLoad Slice FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return BinOpSub CompareGt NameLoad NameLoad CompareLt NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return BinOpSub CompareGt NameLoad NameLoad CompareLt NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore TupleLoad 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 decorator_list If CompareEq NameLoad Str body Expr Call NameLoad keyword NameLoad
N/A test support N/A random N/A sys N/A unittest functools cmp_to_key N/A verbose N/A support verbose N/A nerrors 0 check N/A N/A tag expected raw compare N/A None N/A N/A nerrors N/A verbose N/A N/A N/A     checking tag N/A orig N/A raw N/A N/A compare N/A N/A N/A N/A raw sort key N/A cmp_to_key compare N/A N/A N/A N/A raw sort N/A N/A N/A len expected N/A len raw N/A N/A N/A error in tag N/A N/A length mismatch; N/A len expected N/A len raw N/A expected N/A orig N/A raw N/A nerrors 1 N/A N/A N/A i good N/A enumerate expected N/A N/A maybe N/A raw N/A i N/A N/A good maybe N/A N/A N/A error in tag N/A N/A out of order at index i good maybe N/A expected N/A orig N/A raw N/A nerrors 1 N/A N/A TestBase N/A N/A unittest TestCase N/A testStressfully N/A N/A self N/A N/A N/A sizes N/A 0 N/A power N/A range 1 10 N/A N/A n N/A 2 power N/A N/A N/A sizes extend N/A range N/A n 1 N/A n 2 N/A N/A N/A sizes extend N/A 10 100 1000 Complains N/A object N/A N/A maybe_complain True __init__ N/A N/A self i N/A N/A N/A N/A self i i N/A __lt__ N/A N/A self other N/A N/A N/A N/A N/A Complains maybe_complain N/A N/A N/A random random 0.001 N/A N/A verbose N/A N/A N/A         complaining at self other N/A RuntimeError N/A N/A N/A self i N/A other i N/A __repr__ N/A N/A self N/A N/A N/A N/A Complains(%d) N/A self i N/A N/A Stable N/A object N/A __init__ N/A N/A self key i N/A N/A N/A N/A self key key N/A N/A self index i N/A __lt__ N/A N/A self other N/A N/A N/A N/A N/A self key N/A other key N/A __repr__ N/A N/A self N/A N/A N/A N/A Stable(%d, %d) N/A N/A self key N/A self index N/A N/A N/A n sizes N/A N/A x N/A list N/A range n N/A verbose N/A N/A N/A Testing size n N/A s N/A x N/A N/A N/A check identity x s N/A s N/A x N/A N/A N/A N/A s reverse N/A N/A check reversed x s N/A s N/A x N/A N/A N/A N/A random shuffle s N/A N/A check random permutation x s N/A y N/A x N/A N/A N/A N/A y reverse N/A s N/A x N/A N/A N/A check reversed via function y s N/A N/A N/A a b N/A N/A N/A b a N/A b a N/A verbose N/A N/A     Checking against an insane comparison function. N/A         If the implementation isn't careful, this may segfault. N/A s N/A x N/A N/A N/A N/A s sort key N/A cmp_to_key N/A N/A N/A a b N/A N/A N/A int N/A N/A N/A random random 3 1 N/A N/A check an insane function left some permutation x s N/A N/A N/A len x 2 N/A bad_key N/A N/A x N/A N/A N/A RuntimeError N/A N/A s N/A x N/A N/A N/A N/A self assertRaises RuntimeError N/A s sort key bad_key N/A x N/A N/A Complains i N/A i x N/A s N/A x N/A N/A N/A N/A random shuffle s N/A N/A Complains maybe_complain True N/A it_complained False N/A N/A N/A N/A N/A s sort N/A N/A N/A RuntimeError N/A N/A it_complained True N/A it_complained N/A N/A N/A Complains maybe_complain False N/A N/A check exception during sort left some permutation x s N/A s N/A N/A Stable N/A N/A random randrange 10 i N/A i N/A range n N/A augmented N/A N/A e N/A e index N/A e s N/A N/A N/A augmented sort N/A x N/A e N/A N/A e i augmented N/A N/A check stability x s N/A N/A TestBugs N/A N/A unittest TestCase N/A test_bug453523 N/A N/A self N/A N/A C N/A N/A __lt__ N/A N/A self other N/A N/A N/A N/A L N/A N/A N/A random random 0.75 N/A N/A N/A N/A L pop N/A N/A N/A N/A L append 3 N/A N/A N/A N/A random random 0.5 N/A N/A N/A L N/A N/A C N/A i N/A range 50 N/A N/A N/A self assertRaises ValueError N/A L sort N/A test_undetected_mutation N/A N/A self N/A N/A N/A memorywaster N/A N/A i N/A range 20 N/A mutating_cmp N/A N/A x y N/A N/A N/A N/A N/A L append 3 N/A N/A N/A L pop N/A N/A N/A x y N/A x y N/A N/A L N/A 1 2 N/A N/A N/A self assertRaises ValueError N/A L sort key N/A cmp_to_key mutating_cmp mutating_cmp N/A N/A x y N/A N/A N/A N/A N/A L append 3 N/A N/A L N/A N/A N/A N/A x y N/A x y N/A N/A N/A N/A self assertRaises ValueError N/A L sort key N/A cmp_to_key mutating_cmp N/A memorywaster N/A memorywaster N/A N/A TestDecorateSortUndecorate N/A N/A unittest TestCase N/A test_decorated N/A N/A self N/A N/A N/A data N/A N/A The quick Brown fox Jumped over The lazy Dog split N/A copy N/A data N/A N/A N/A N/A random shuffle data N/A N/A N/A data sort key N/A str lower my_cmp N/A N/A x y N/A N/A N/A N/A xlower ylower N/A N/A N/A x lower N/A N/A y lower N/A N/A N/A xlower ylower N/A xlower ylower N/A N/A N/A N/A copy sort key N/A cmp_to_key my_cmp N/A test_baddecorator N/A N/A self N/A N/A N/A data N/A N/A The quick Brown fox Jumped over The lazy Dog split N/A N/A N/A self assertRaises TypeError N/A data sort key N/A N/A N/A x y N/A 0 N/A test_stability N/A N/A self N/A N/A N/A data N/A N/A N/A N/A random randrange 100 i N/A i N/A range 200 N/A copy N/A data N/A N/A N/A N/A data sort key N/A N/A N/A t N/A N/A t N/A 0 N/A N/A N/A copy sort N/A N/A N/A self assertEqual data copy N/A test_key_with_exception N/A N/A self N/A N/A N/A data N/A list N/A range -2 2 N/A dup N/A data N/A N/A N/A N/A self assertRaises ZeroDivisionError N/A data sort key N/A N/A N/A x N/A N/A 1 x N/A N/A N/A self assertEqual data dup N/A test_key_with_mutation N/A N/A self N/A N/A N/A data N/A list N/A range 10 k N/A N/A x N/A N/A N/A N/A data N/A N/A N/A data N/A N/A range 20 N/A x N/A N/A N/A N/A self assertRaises ValueError N/A data sort key k N/A test_key_with_mutating_del N/A N/A self N/A N/A N/A data N/A list N/A range 10 SortKiller N/A object N/A __init__ N/A N/A self x N/A N/A N/A N/A __del__ N/A N/A self N/A N/A N/A N/A data N/A N/A N/A data N/A N/A range 20 N/A __lt__ N/A N/A self other N/A N/A N/A N/A N/A id self N/A id other N/A N/A N/A N/A N/A self assertRaises ValueError N/A data sort key SortKiller N/A test_key_with_mutating_del_and_exception N/A N/A self N/A N/A N/A data N/A list N/A range 10 SortKiller N/A object N/A __init__ N/A N/A self x N/A N/A N/A N/A x 2 N/A N/A RuntimeError N/A __del__ N/A N/A self N/A N/A N/A N/A data N/A N/A N/A data N/A N/A list N/A range 20 N/A N/A N/A N/A N/A self assertRaises RuntimeError N/A data sort key SortKiller N/A test_reverse N/A N/A self N/A N/A N/A data N/A list N/A range 100 N/A N/A N/A random shuffle data N/A N/A N/A data sort reverse True N/A N/A N/A self assertEqual data N/A list N/A range 99 -1 -1 N/A test_reverse_stability N/A N/A self N/A N/A N/A data N/A N/A N/A N/A random randrange 100 i N/A i N/A range 200 N/A copy1 N/A data N/A N/A copy2 N/A data N/A my_cmp N/A N/A x y N/A N/A N/A N/A x0 y0 N/A N/A x N/A 0 N/A y N/A 0 N/A N/A N/A x0 y0 N/A x0 y0 N/A my_cmp_reversed N/A N/A x y N/A N/A N/A N/A x0 y0 N/A N/A x N/A 0 N/A y N/A 0 N/A N/A N/A y0 x0 N/A y0 x0 N/A N/A N/A N/A data sort key N/A cmp_to_key my_cmp reverse True N/A N/A N/A copy1 sort key N/A cmp_to_key my_cmp_reversed N/A N/A N/A self assertEqual data copy1 N/A N/A N/A copy2 sort key N/A N/A N/A x N/A N/A x N/A 0 reverse True N/A N/A N/A self assertEqual data copy2 N/A N/A test_main N/A N/A verbose N/A None N/A N/A test_classes N/A TestBase TestDecorateSortUndecorate TestBugs N/A N/A N/A 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 range N/A len counts N/A N/A N/A N/A 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 __name__ __main__ N/A N/A N/A test_main verbose True