[issue21130] equivalent functools.partial instances should compare equal

Thomas Heller report at bugs.python.org
Fri Apr 4 13:33:12 CEST 2014


Thomas Heller added the comment:

My usecase is: I create kind of bound methods with functools.partial.

Apologies for the confusion by using the word 'equivalent'; what I mean is that partial instances should (IMO) compare equal when they contain the same function and args/keywords which compare equal.

I guess functools.partialmethod has the same problem and I would suggest the same fix/enhancement but I have not used them yet because I have to write python2/3 compatible code.

Anyway; if this behaviour is not seen as a bug then it is probably python-ideas material, but I'm too tired to start a discussion there atm.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21130>
_______________________________________


More information about the Python-bugs-list mailing list