27.12.19 18:00, Siddharth Prajosh пише:
Why do we need separate functions for == and != ?
Isn't this supposed to be negation of each other?
Because __eq__ and __ne__ can return not only bool. For example, for
NumPy arrays they return arrays of bools.