[issue21130] equivalent functools.partial instances should compare equal
eryksun
report at bugs.python.org
Wed Apr 2 14:11:24 CEST 2014
eryksun added the comment:
Function equality is based on identity, as inherited from object. But there's a precedent for this idea in method_richcompare, which compares the method's __func__ and __self__:
http://hg.python.org/cpython/file/04f714765c13/Objects/classobject.c#l208
----------
nosy: +eryksun
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21130>
_______________________________________
More information about the Python-bugs-list
mailing list