My concern is with regards to something like:
for i in range(1000000000):
i = 0
while i < 1000000000:
i += 1
Yes, in python-2.x
range will create the whole list.
But you don't necessarily need a
while loop you can also use the lazy-
for i in xrange(1000000000): ...