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 <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