[issue22955] Pickling of methodcaller, attrgetter, and itemgetter
Serhiy Storchaka
report at bugs.python.org
Sun Dec 14 17:49:30 CET 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue22955>
_______________________________________
More information about the Python-bugs-list
mailing list