gpython
gpython copied to clipboard
NotImplemented comparison generate TypeError
TypeError occurs when comparing NotImplemented value from execution result.
Expected result (cpython)
>>> range(0).__ne__(2) == NotImplemented
True
Actual result
>>> range(0).__ne__(2) == NotImplemented
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FIXME line of source goes here
TypeError: "unsupported operand type(s) for ==: 'NotImplementedError' and 'NotImplementedError'"