Visitar URL original
NotImplemented comparison generate TypeError · Issue #102 · go-python/gpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200910210637/https://github.com/go-python/gpython/issues/102
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NotImplemented comparison generate TypeError #102

Open
HyeockJinKim opened this issue Sep 29, 2019 · 0 comments
Open

NotImplemented comparison generate TypeError #102

HyeockJinKim opened this issue Sep 29, 2019 · 0 comments

Comments

@HyeockJinKim
Copy link
Contributor

@HyeockJinKim HyeockJinKim commented Sep 29, 2019

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'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.