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.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/S2GNNMCEZJNTUWOSPON56SHU3ME2NEH4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to