Mark Dickinson <dicki...@gmail.com> added the comment: 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 ---------- nosy: +cjw296 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6970> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com