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 r.david.murray
Recipients eric.araujo, ezio.melotti, haggholm, orsenthil, python-dev, r.david.murray
Date 2011-07-23.14:53:40
SpamBayes Score 0.00020024239
Marked as misclassified No
Message-id <1311432821.42.0.621093533947.issue12581@psf.upfronthosting.co.za>
In-reply-to
Content
Exhaustion of the iterator is easily solved by simply retaining a reference to it and iterating that (which is what I had in mind).  However, I had not thought about the problem of an *in*exhaustable iterator, and to cover that case len is indeed better.
History
Date User Action Args
2011-07-23 14:53:41r.david.murraysetrecipients: + r.david.murray, orsenthil, ezio.melotti, eric.araujo, python-dev, haggholm
2011-07-23 14:53:41r.david.murraysetmessageid: <1311432821.42.0.621093533947.issue12581@psf.upfronthosting.co.za>
2011-07-23 14:53:40r.david.murraylinkissue12581 messages
2011-07-23 14:53:40r.david.murraycreate