diff --git a/advanced-classes.html b/advanced-classes.html index f6fa68d..3ae009d 100644 --- a/advanced-classes.html +++ b/advanced-classes.html @@ -100,6 +100,67 @@ class OrderedDict(dict, collections.MutableMapping):
⁂ +
FIXME + +
+>>> import ordereddict +>>> od = ordereddict.OrderedDict() +>>> klass = od.__class__ +>>> type(klass) +<class 'abc.ABCMeta'> +>>> klass.__name__ +'OrderedDict' + +>>> klass.__module__ +'ordereddict' +>>> klass.__bases__ +(<class 'dict'>, <class '_abcoll.MutableMapping'>)+
+# continued from previous example
+>>> klass.__dict__
+{'__abstractmethods__': frozenset(),
+ '__delitem__': <function __delitem__ at 0x00DCB6A8>,
+ '__dict__': <attribute '__dict__' of 'OrderedDict' objects>,
+ '__doc__': None,
+ '__eq__': <function __eq__ at 0x00DD2930>,
+ '__hash__': None,
+ '__init__': <function __init__ at 0x00DC41E0>,
+ '__iter__': <function __iter__ at 0x00DCB618>,
+ '__module__': 'ordereddict',
+ '__reduce__': <function __reduce__ at 0x00DCB6F0>,
+ '__repr__': <function __repr__ at 0x00DCB8E8>,
+ '__reversed__': <function __reversed__ at 0x00DCB660>,
+ '__setitem__': <function __setitem__ at 0x00DCB5D0>,
+ '__weakref__': <attribute '__weakref__' of 'OrderedDict' objects>,
+ '_abc_cache': <_weakrefset.WeakSet object at 0x00DCF950>,
+ '_abc_negative_cache': <_weakrefset.WeakSet object at 0x00DCF990>,
+ '_abc_negative_cache_version': 12,
+ '_abc_registry': <_weakrefset.WeakSet object at 0x00DCF910>,
+ 'clear': <function clear at 0x00DCB7C8>,
+ 'copy': <function copy at 0x00DD28A0>,
+ 'fromkeys': <classmethod object at 0x00DCF8F0>,
+ 'items': <function items at 0x00D60150>,
+ 'keys': <function keys at 0x00D60108>,
+ 'pop': <function pop at 0x00D60978>,
+ 'popitem': <function popitem at 0x00DCB780>,
+ 'setdefault': <function setdefault at 0x00D60A98>,
+ 'update': <function update at 0x00D60A50>,
+ 'values': <function values at 0x00D60198>}
+⁂ +