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 mark.dickinson
Recipients cjw296, mark.dickinson
Date 2009-09-22.15:57:27
SpamBayes Score 3.5833536e-09
Marked as misclassified No
Message-id <1253635048.25.0.502972680922.issue6970@psf.upfronthosting.co.za>
In-reply-to
Content
And here's an example from trunk:

Python 2.7a0 (trunk:75012M, Sep 22 2009, 11:16:39) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class A(object):
...     def __eq__(self, other):
...         print "A.__eq({!r}, {!r})".format(self, other)
...         return NotImplemented
... 
>>> A() == A()
A.__eq(<__main__.A object at 0x39f670>, <__main__.A object at 0x39f610>)
A.__eq(<__main__.A object at 0x39f610>, <__main__.A object at 0x39f670>)
A.__eq(<__main__.A object at 0x39f670>, <__main__.A object at 0x39f610>)
A.__eq(<__main__.A object at 0x39f610>, <__main__.A object at 0x39f670>)
A.__eq(<__main__.A object at 0x39f610>, <__main__.A object at 0x39f670>)
A.__eq(<__main__.A object at 0x39f670>, <__main__.A object at 0x39f610>)
False
History
Date User Action Args
2009-09-22 15:57:28mark.dickinsonsetrecipients: + mark.dickinson, cjw296
2009-09-22 15:57:28mark.dickinsonsetmessageid: <1253635048.25.0.502972680922.issue6970@psf.upfronthosting.co.za>
2009-09-22 15:57:27mark.dickinsonlinkissue6970 messages
2009-09-22 15:57:27mark.dickinsoncreate