On Fri, Feb 18, 2011 at 4:54 PM, Michael Torrie <torr...@gmail.com> wrote: > On 02/17/2011 04:10 PM, Werner wrote: > Just for your information, your code is the equivalent of: > > while True: > temp = range(20000000) > > The for loop does absolutely nothing in your case. After the range is > computed, the for loop exits on the first iteration.
Ah, but the for loop is there for a reason, I imagine. It'd certainly be slower per while loop. -- http://mail.python.org/mailman/listinfo/python-list