Skip to content

Conversation

mossblaser
Copy link
Member

These are required for Python 2.7 compatibility: In Python 3.x if ne is
omitted, it defaults to the inversion of eq if eq defined. In Python
2.x ne defaults to id(a) != id(b).

Thanks to @alan-stokes for spotting this bug!

These are required for Python 2.7 compatibility: In Python 3.x if __ne__ is
omitted, it defaults to the inversion of __eq__ if __eq__ defined. In Python
2.x __ne__ defaults to id(a) != id(b).

Thanks to @alan-stokes for spotting this bug!
@mundya
Copy link
Member

mundya commented Jan 28, 2016

LGTM, the failing tests look like a connectivity issue.

mossblaser added a commit that referenced this pull request Jan 28, 2016
Add corresponding __ne__ methods to objects with __eq__
@mossblaser mossblaser merged commit 23caf1c into master Jan 28, 2016
@mossblaser mossblaser deleted the __ne__ branch January 28, 2016 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants