Serhiy Storchaka added the comment:

Here is revised Josh's patch. Added tests for consistency between both 
implementations, fixed inconsistencies and bugs.

I still hesitate about pickling format of methodcaller. First, there is 
asymmetry between positional and keyword arguments. Second, for now 
methodcaller is not inheritable, but if it will be in future (as 
functools.partial is), it would be harder to extend pickling format to support 
instance attributes.

stage: needs patch -> patch review
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to