[ python-Bugs-1617161 ] Instance methods compare equal when their self's are equal
SourceForge.net
noreply at sourceforge.net
Sat Dec 16 22:36:32 CET 2006
Bugs item #1617161, was opened at 2006-12-16 22:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1617161&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Frank Niessink (fniessink)
Assigned to: Nobody/Anonymous (nobody)
Summary: Instance methods compare equal when their self's are equal
Initial Comment:
Python 2.5 was changed so that instance methods compare equal when their im_self attributes compare equal. Here's a link to that change: http://svn.python.org/view?rev=46739&view=rev
This is a problem if we want to distinguish between methods of instances that compare equal, for example when methods can be registered as callbacks (see attached example).
It seems unlogical to me that whether or not the instance methods of two different instances are equal or not depends on the equality of the instance.
Thanks, Frank
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1617161&group_id=5470
More information about the Python-bugs-list
mailing list