Raymond Hettinger added the comment: I'll take a look at it next week -- want to think through the various cases. The current setup provides nice speedups when the length_hint is available. Possibly, it may be worthwhile to skip that check when the input is a generator. For the most part, I'm more concerned about the inner-loop time than the constant startup time outside the loop.
__________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1045> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com