Module ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr ListLoad TupleLoad Str Num Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assert Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Call NameLoad Assign SubscriptStore NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Dict Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Dict attr Str decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Raise NameLoad Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults CompareEq Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad decorator_list decorator_list Expr Call AttributeLoad NameLoad attr Call NameLoad Dict Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults CompareEq Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad Call NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list Expr Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Lambda arguments args defaults SubscriptLoad Call NameLoad Index Str decorator_list decorator_list FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A test test_support N/A unittest DictInitTest N/A N/A unittest TestCase N/A testInternalSetitemInInit N/A N/A self N/A N/A N/A Test for http://jython.org/bugs/1816134

        CPython's dict uses an internal setitem method to initialize itself
        rather than the one on its subclasses, and this tests that Jython does
        as well.
         Subdict N/A dict N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super Subdict self __init__ N/A N/A a 1 N/A N/A self createdInInit 1 N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A N/A super Subdict self __setitem__ key value N/A N/A hasattr self createdInInit N/A N/A self createdInInit value N/A N/A N/A s N/A Subdict N/A N/A s N/A 7 called N/A N/A N/A self assertEquals called N/A s createdInInit N/A N/A DictCmpTest N/A N/A unittest TestCase N/A N/A Test for http://bugs.jython.org/issue1031 testDictCmp N/A N/A self N/A N/A N/A N/A N/A self assertNotEqual N/A N/A N/A N/A self assertRaises TypeError N/A N/A __cmp__ N/A testDictDerivedCmp N/A N/A self N/A N/A derived_dict N/A dict N/A N/A N/A N/A N/A N/A self assertEqual N/A derived_dict N/A N/A N/A N/A self assertNotEqual N/A derived_dict N/A N/A N/A self assertRaises TypeError N/A N/A derived_dict __cmp__ non_comparable_dict N/A dict N/A __cmp__ N/A N/A self other N/A N/A N/A TypeError I always raise TypeError N/A N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A N/A N/A non_comparable_dict N/A N/A N/A self assertRaises TypeError N/A N/A non_comparable_dict __cmp__ dummy_dict_with_cmp N/A dict N/A __cmp__ N/A N/A self other N/A N/A N/A N/A N/A N/A super dummy_dict_with_cmp self __cmp__ other N/A N/A N/A N/A N/A self assertEqual N/A dummy_dict_with_cmp N/A N/A N/A N/A self assertRaises TypeError N/A N/A N/A N/A N/A N/A dummy_dict_with_cmp N/A N/A N/A self assertRaises TypeError N/A N/A dummy_dict_with_cmp __cmp__ derived_dict_with_custom_cmp N/A dict N/A __cmp__ N/A N/A self other N/A N/A N/A 0 N/A N/A yet_another_dict N/A derived_dict_with_custom_cmp N/A N/A N/A N/A N/A N/A self assertEqual N/A derived_dict_with_custom_cmp N/A N/A N/A self assertEqual N/A yet_another_dict N/A N/A DerivedDictTest N/A N/A unittest TestCase N/A N/A Tests for derived dict behaviour test_raising_custom_key_error N/A N/A self N/A N/A CustomKeyError N/A KeyError N/A N/A N/A DerivedDict N/A dict N/A __getitem__ N/A N/A self key N/A N/A N/A N/A CustomKeyError custom message N/A N/A N/A N/A N/A self assertRaises CustomKeyError N/A N/A N/A N/A N/A N/A DerivedDict N/A foo N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A test_support run_unittest DictInitTest DictCmpTest DerivedDictTest N/A N/A N/A __name__ __main__ N/A N/A N/A test_main