Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Dict.ne doesn't return NotImplemented.
gpython/py/dict.go
Lines 167 to 176 in af17d7d
If result of __eq__ is Not Implemented, __ne__ should return NotImplemented, not True
__eq__
__ne__
NotImplemented
True
>>> a = {} >>> a.__ne__(3) NotImplemented
>>> a = {} >>> a.__ne__(3) True
The text was updated successfully, but these errors were encountered:
__ne__ of dict return NotImplemented
9b364b3
if type of other is not dict, return NotImplemented Fixes go-python#108
Successfully merging a pull request may close this issue.
Dict.ne doesn't return NotImplemented.
gpython/py/dict.go
Lines 167 to 176 in af17d7d
If result of
__eq__
is Not Implemented,__ne__
should returnNotImplemented
, notTrue
Expected result (python)
Actual result (gpython)
The text was updated successfully, but these errors were encountered: