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

Reply via email to