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 rhettinger
Recipients jcea, kristjan.jonsson, loewis, michael.foord, rhettinger
Date 2012-03-13.21:24:30
SpamBayes Score 3.083874e-08
Marked as misclassified No
Message-id <1331673872.0.0.444878158645.issue14288@psf.upfronthosting.co.za>
In-reply-to
Content
ISTM that a discussion on python-dev would be of value here.  Iterators are a protocol, not a class; hence, the effort to make them all picklable is potentially endless.  The effort would also always be incomplete because some iterators are difficult or inconvenient to pickle (esp. those with inputs from local or temporary resources).

Experience with SQL hasn't shown a need to save partially consumed cursors and my experience with iterators indicates that the need for pickling would be rare or that is would distract from better solutions (perhaps message based or somesuch).

The size of this patch is a hint that the idea is not a minor change and that it would add a maintenance burden.  What is far from clear is whether it would have value for any real-world problems.
History
Date User Action Args
2012-03-13 21:24:32rhettingersetrecipients: + rhettinger, loewis, jcea, kristjan.jonsson, michael.foord
2012-03-13 21:24:32rhettingersetmessageid: <1331673872.0.0.444878158645.issue14288@psf.upfronthosting.co.za>
2012-03-13 21:24:31rhettingerlinkissue14288 messages
2012-03-13 21:24:30rhettingercreate