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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to