Message93002
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 |
|
Date |
User |
Action |
Args |
2009-09-22 15:57:28 | mark.dickinson | set | recipients:
+ mark.dickinson, cjw296 |
2009-09-22 15:57:28 | mark.dickinson | set | messageid: <1253635048.25.0.502972680922.issue6970@psf.upfronthosting.co.za> |
2009-09-22 15:57:27 | mark.dickinson | link | issue6970 messages |
2009-09-22 15:57:27 | mark.dickinson | create | |
|