Which of the two (semantically equivalent) ways is preferable to test for inequality?
I have a class where I want to override the
__eq__ method. It seems to make sense that I should override the
__ne__ method as well. Should I implement
__ne__ as the negation of
__eq__ as such or is it a bad idea?