On 07/07/2014 04:22 AM, Andreas Maier wrote:

Where is the discrepancy between the documentation of == and its default 
implementation on object documented?

There's seems to be no discrepancy (at least, you have not shown it), but to answer the question about why the default equals operation is an identity test:

  - all objects should be equal to themselves (there is only one that isn't, 
and it's weird)

  - equality tests should not, as a general rule, raise exceptions -- they 
should return True or False

--
~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to