Message231872
| Author |
zach.ware |
| Recipients |
Antony.Lee, josh.r, pitrou, rhettinger, serhiy.storchaka, zach.ware |
| Date |
2014年11月29日.21:52:05 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1417297926.09.0.294241884241.issue22955@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|