Latest Version: 0.9.6.1

More __cmp__ fun by Leo Soto


Language: Python console session
1
2
3
4
5
6
>>> z().__cmp__('1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: dict.__cmp__(x,y) requires y to be 'dict', not a 'str'
>>> z() == '1'
False

Top