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 kristjan.jonsson
Recipients georg.brandl, jcea, kristjan.jonsson, loewis, michael.foord, pitrou, rhettinger, sbt
Date 2012-03-27.14:28:59
SpamBayes Score 7.926815e-08
Marked as misclassified No
Message-id <1332858549.54.0.448554564567.issue14288@psf.upfronthosting.co.za>
In-reply-to
Content
I've incorporated antoine's comments and the proposed internal function name into a new patch.

A lot of the changes concerned thecking the type() of the unpickled iterator.  Now, it wasn't a specific design goal to get the exact same objects back, only _equivalent_ objects.  In particular, dicts and sets have problems, so a dictiter to a partially consumed dict cannot be pickled as it is.

so, I've added type cases everywhere, but for those cases.
Now, how important do you think type consistency is?  when using iterators, does one ever look at it and test its type?  if this is important, I _could_ take another look at dicts and seta and create fresh iterators to the dicts and sets made out of the remainder of the items, rather than iterators to lists.

Any thoughs?
History
Date User Action Args
2012-03-27 14:29:09kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis, georg.brandl, rhettinger, jcea, pitrou, michael.foord, sbt
2012-03-27 14:29:09kristjan.jonssonsetmessageid: <1332858549.54.0.448554564567.issue14288@psf.upfronthosting.co.za>
2012-03-27 14:29:08kristjan.jonssonlinkissue14288 messages
2012-03-27 14:29:08kristjan.jonssoncreate