Has comparison of instancemethods changed between python 2.5 and 2.4?

Frank Niessink frank at niessink.com
Sat Dec 16 16:37:44 EST 2006


Ziga Seilnacht:
> This method was changed in Python 2.5. Previously, two instancemethods
> compared equal if their im_self attributes were *identical* and their
> im_func attributes were equal. Now, they compare equal if their im_self
> attributes are *equal* and their im_func attributes are equal. 

Thanks Ziga, that explains very clearly why I get the behavior I see.

> If you think this is a bug, you should report it to the bugtracker:
> http://sourceforge.net/bugs/?group_id=5470

Well, from where I am it sure feels like a bug in python, so I've 
submitted a bug report: 
http://sourceforge.net/tracker/index.php?func=detail&aid=1617161&group_id=5470&atid=105470

Thanks for your help, Frank



More information about the Python-list mailing list