[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

Raymond Hettinger report at bugs.python.org
Tue Dec 9 11:40:38 CET 2014


Raymond Hettinger added the comment:

Please remember that a potential new pickling feature is the least import part of the design of methodcaller, itemgetter, and attrgetter.  Pickle support should be driven by the design rather become a predominant consideration.

One other note:  the OP's original concern has very little to do with these particular objects.  Instead, it is the picking and unpickling tools themselves that tend to have crummy error messages when presented with objects that weren't specially designed with pickle support.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22955>
_______________________________________


More information about the Python-bugs-list mailing list