[issue22955] Pickling of methodcaller, attrgetter, and itemgetter

Raymond Hettinger report at bugs.python.org
Tue Dec 9 11:35:27 CET 2014


Raymond Hettinger 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.

That isn't the usual approach.  The pickling methods are there for a reason.  I prefer to leave the existing code in a stable state and avoid unnecessary code churn or risk introducing bugs into code that is working correctly and as designed.

----------

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


More information about the Python-bugs-list mailing list