gpython icon indicating copy to clipboard operation
gpython copied to clipboard

NotImplemented comparison generate TypeError

Open HyeockJinKim opened this issue 6 years ago • 0 comments

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'"

HyeockJinKim avatar Sep 29 '19 09:09 HyeockJinKim