Latest Version: 0.9.6.1

"Fixed" jython __cmp__ by Leo Soto


Language: Python console session
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Jython 2.3a0 on java1.6.0_06
Type "copyright", "credits" or "license" for more information.
cl>>> ass 
Traceback (most recent call last):
  (no code object) at line 0
  File "<stdin>", line 1
SyntaxError: invalid syntax
>>> class z(dict): pass
... 
>>> z.__cmp__('1')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor '__cmp__' requires a 'dict' object but received a 'str'
>>> z == '1'
False
>>>

Top