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 pitrou
Recipients georg.brandl, jcea, kristjan.jonsson, loewis, michael.foord, pitrou, rhettinger, sbt
Date 2012-03-27.15:10:06
SpamBayes Score 0.00028414285
Marked as misclassified No
Message-id <1332860710.3347.2.camel@localhost.localdomain>
In-reply-to <1332858549.54.0.448554564567.issue14288@psf.upfronthosting.co.za>
Content
> 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.

I think type consistency is important if it can be achieved reasonably
simply.
In the dict and set case, I'm not sure you can recreate the internal
table in the same order (even accross interpreter restarts). In this
case, you should just check that the unpickled data is a subclass of
collections.abc.Iterator.
History
Date User Action Args
2012-03-27 15:10:07pitrousetrecipients: + pitrou, loewis, georg.brandl, rhettinger, jcea, kristjan.jonsson, michael.foord, sbt
2012-03-27 15:10:06pitroulinkissue14288 messages
2012-03-27 15:10:06pitroucreate