Author jackdied
Recipients ajaksu2, benjamin.peterson, jackdied, jml
Date 2009-07-27.00:12:33
SpamBayes Score 0.000122737
Marked as misclassified No
Message-id <1248653556.51.0.626153994482.issue3071@psf.upfronthosting.co.za>
In-reply-to
Content
The code that raises the error is in ceval.c which is a critical path. 
The raise is done as soon the iterator has one more item than is needed
(see Daniel Diniz's comments on infinite iterators).  While the check
could return more useful information for known non-infinite iterators
(tuples, lists, etc) it would have to do a big if/else for all the core
types (but excluding their subclasses!).  If someone wants to submit
that patch and a benchmark that shows no slowdown I'll reopen the bug.

Until then I'm closing as WONTFIX.
History
Date User Action Args
2009-07-27 00:12:36jackdiedsetrecipients: + jackdied, ajaksu2, benjamin.peterson, jml
2009-07-27 00:12:36jackdiedsetmessageid: <1248653556.51.0.626153994482.issue3071@psf.upfronthosting.co.za>
2009-07-27 00:12:35jackdiedlinkissue3071 messages
2009-07-27 00:12:34jackdiedcreate