have a look at the following piece of code, which shows a list comprehension..
>>> i = 6 >>> s = [i * i for i in range(100)] >>> p
Looks like a change in scoping to me.
I confirmed your result in Python 2.6; it does indeed print 99, which is the last value assigned to i in the list comprehension.