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: http://bugs.python.org/file37448/pickle_getter_and_caller3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22955>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to