[issue22955] Pickling of methodcaller, attrgetter, and itemgetter
Zachary Ware
report at bugs.python.org
Sat Nov 29 22:52:06 CET 2014
Zachary Ware added the comment:
I'd prefer to just reimplement itemgetter and attrgetter to make them picklable rather than adding pickling methods to them; see attached patch.
I also posted a few comments, but I just went ahead and addressed them myself in this patch. I'm not qualified to give the _operator.c changes a proper review, but they look good enough to me if others agree that __reduce__ is the best approach in C.
----------
Added file: http://bugs.python.org/file37319/issue22955.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22955>
_______________________________________
More information about the Python-bugs-list
mailing list