This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2014-11-29 21:52:06zach.waresetrecipients: + zach.ware, rhettinger, pitrou, serhiy.storchaka, Antony.Lee, josh.r
2014-11-29 21:52:06zach.waresetmessageid: <1417297926.09.0.294241884241.issue22955@psf.upfronthosting.co.za>
2014-11-29 21:52:06zach.warelinkissue22955 messages
2014-11-29 21:52:05zach.warecreate