Closed
Description
Dict.ne doesn't return NotImplemented.
Lines 167 to 176 in af17d7d
If result of __eq__
is Not Implemented, __ne__
should return NotImplemented
, not True
Expected result (python)
>>> a = {}
>>> a.__ne__(3)
NotImplemented
Actual result (gpython)
>>> a = {}
>>> a.__ne__(3)
True
Metadata
Metadata
Assignees
Labels
No labels