This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author medwards
Recipients georg.brandl, medwards, rhettinger, terry.reedy
Date 2009-06-22.03:47:59
SpamBayes Score 1.36869e-09
Marked as misclassified No
Message-id <>
The implementation you are looking for is in object_richcompare, in
.  It would be most accurate to say something like:

    The "object" base class, from which all user-defined classes
inherit, provides a single "rich comparison" method to which all of the
comparison operators (__eq__, __ne__, __lt__, __le__, __ge__, __gt__)
map.  This method returns a non-trivial value (i. e., something other
than NotImplemented) in only two cases:
  * When called as __eq__, if the two objects are identical, this method
returns True.  (If they are not identical, it returns NotImplemented so
that the other object's implementation of __eq__ gets a chance to return
  * When called as __ne__, it calls the equivalent of "self == other";
if this returns a non-trivial value X, then it returns !X (which is
always either True or False).
Date User Action Args
2009-06-22 03:48:02medwardssetrecipients: + medwards, georg.brandl, rhettinger, terry.reedy
2009-06-22 03:48:02medwardssetmessageid: <>
2009-06-22 03:48:00medwardslinkissue4395 messages
2009-06-22 03:47:59medwardscreate