Module Expr Str ImportFrom alias alias Assign NameStore NameLoad Assign NameStore Num FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr UnaryOpNot NameLoad CompareLt Call NameLoad NameLoad NameLoad body Return NameLoad Return BinOpAdd SubscriptLoad NameLoad Slice NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameStore Num Assign NameStore ListLoad Assign NameStore ListLoad While NameLoad body TryExcept body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareLt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num While CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num orelse If CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num While CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num TryFinally body While CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num finalbody AugAssignAdd NameStore Num While CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Break Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore ListLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore TupleLoad NameLoad NameLoad body TryExcept body While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass If NameLoad body While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body While NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass Return TupleLoad NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Str Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIs NameLoad NameLoad body Continue Assign NameStore NameStore Num For NameStore Call NameLoad NameLoad NameLoad body If CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq NameLoad NameLoad body AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareIs NameLoad NameLoad body Continue Assign NameStore Num For NameStore Call NameLoad NameLoad NameLoad body If CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad body AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore Call NameLoad Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Num If CompareNotEq NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Assign NameStore Call NameLoad Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A N/A Various utility functions. collections namedtuple OrderedDict N/A __unittest True N/A _MAX_LENGTH 80 safe_repr N/A N/A obj short N/A False N/A N/A N/A N/A result N/A repr obj N/A N/A N/A Exception N/A N/A result N/A N/A object __repr__ obj N/A N/A N/A short N/A N/A len result _MAX_LENGTH N/A N/A result N/A N/A N/A result N/A _MAX_LENGTH  [truncated]... N/A strclass N/A N/A cls N/A N/A N/A N/A %s.%s N/A N/A cls __module__ N/A cls __name__ N/A sorted_list_difference N/A N/A expected actual N/A N/A N/A Finds elements in only one or the other of two, sorted input lists.

    Returns a two-element tuple of lists.    The first list contains those
    elements in the "expected" list but not in the "actual" list, and the
    second contains those elements in the "actual" list but not in the
    "expected" list.    Duplicate elements in either input list are ignored.
     N/A i j 0 N/A missing N/A N/A unexpected N/A N/A True N/A N/A N/A N/A e N/A expected N/A i N/A a N/A actual N/A j N/A N/A e a N/A N/A N/A N/A missing append e N/A i 1 N/A N/A N/A expected N/A i e N/A N/A i 1 N/A N/A N/A e a N/A N/A N/A N/A unexpected append a N/A j 1 N/A N/A N/A actual N/A j a N/A N/A j 1 N/A N/A i 1 N/A N/A N/A N/A N/A expected N/A i e N/A N/A i 1 N/A N/A j 1 N/A N/A N/A actual N/A j a N/A N/A j 1 N/A N/A N/A IndexError N/A N/A N/A N/A missing extend N/A expected N/A i N/A N/A N/A unexpected extend N/A actual N/A j N/A N/A N/A missing unexpected N/A unorderable_list_difference N/A N/A expected actual ignore_duplicate N/A False N/A N/A Same behavior as sorted_list_difference but
    for lists of unorderable items (like dicts).

    As it does a linear search per item (remove) it
    has O(n*n) performance.
     N/A missing N/A N/A unexpected N/A N/A expected N/A N/A item N/A N/A expected pop N/A N/A N/A N/A N/A actual remove item N/A N/A N/A ValueError N/A N/A N/A N/A missing append item N/A ignore_duplicate N/A N/A lst N/A expected actual N/A N/A N/A N/A True N/A N/A N/A N/A lst remove item N/A N/A N/A ValueError N/A N/A N/A ignore_duplicate N/A N/A actual N/A N/A item N/A N/A actual pop N/A N/A N/A unexpected append item N/A N/A N/A True N/A N/A N/A N/A actual remove item N/A N/A N/A ValueError N/A N/A N/A N/A missing unexpected N/A N/A missing actual N/A N/A _Mismatch N/A namedtuple Mismatch actual expected value _count_diff_all_purpose N/A N/A actual expected N/A N/A N/A Returns list of (cnt_act, cnt_exp, elem) triples where the counts differ N/A N/A s t N/A N/A list actual N/A list expected N/A N/A m n N/A N/A len s N/A len t N/A NULL N/A object N/A result N/A N/A N/A i elem N/A enumerate s N/A N/A N/A elem NULL N/A N/A N/A cnt_s cnt_t 0 N/A j N/A range i m N/A N/A N/A N/A s N/A j elem N/A N/A cnt_s 1 N/A N/A s N/A j NULL N/A N/A j other_elem N/A enumerate t N/A N/A N/A other_elem elem N/A N/A cnt_t 1 N/A N/A t N/A j NULL N/A N/A cnt_s cnt_t N/A N/A diff N/A _Mismatch cnt_s cnt_t elem N/A N/A N/A result append diff N/A N/A i elem N/A enumerate t N/A N/A N/A elem NULL N/A N/A N/A cnt_t 0 N/A j N/A range i n N/A N/A N/A N/A t N/A j elem N/A N/A cnt_t 1 N/A N/A t N/A j NULL N/A diff N/A _Mismatch 0 cnt_t elem N/A N/A N/A result append diff N/A result N/A _ordered_count N/A N/A iterable N/A N/A N/A Return dict of element counts, in the order they were first seen N/A c N/A OrderedDict N/A elem iterable N/A N/A N/A c N/A elem N/A N/A N/A c get elem 0 1 N/A c N/A _count_diff_hashable N/A N/A actual expected N/A N/A N/A Returns list of (cnt_act, cnt_exp, elem) triples where the counts differ N/A N/A s t N/A N/A _ordered_count actual N/A _ordered_count expected N/A result N/A N/A N/A elem cnt_s N/A N/A s items N/A N/A cnt_t N/A N/A t get elem 0 N/A N/A cnt_s cnt_t N/A N/A diff N/A _Mismatch cnt_s cnt_t elem N/A N/A N/A result append diff N/A N/A elem cnt_t N/A N/A t items N/A N/A N/A elem s N/A N/A diff N/A _Mismatch 0 cnt_t elem N/A N/A N/A result append diff N/A result N/A