Latest Version: 0.9.6.1

DictionaryDerived and __le__ by Leo Soto


Language: Python console session
1
2
3
4
5
6
7
8
9
>>> class z(dict): pass
... 
>>> {}.__le__(1)
NotImplemented
>>> z().__le__(1)
PyDictionary.__le__
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: dict.__cmp__(x,y) requires y to be 'dict', not a 'int'

Top