how to break a for loop?

bonono at gmail.com bonono at gmail.com
Tue Feb 21 07:53:21 EST 2006


bearophileH... at lycos.com wrote:
> This time it seems that using itertools gives slower results, this is
> the test code:
Understandable, as dropwhile still needs to go through the whole list
and the difference will be larger when the list get longer. Though I
still prefer that if the list is not horribly long as it is like a
spec. But then, one can always name the fast in place del slice version
like "dropwhileFast".




More information about the Python-list mailing list