[hork@archbang whergbot]$ python2.7
Python 2.7.1 (r271:86832, Feb 21 2011, 01:26:25)
[GCC 4.5.2 20110127 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> with open("quotes.txt") as q:
... for i, l in enumerate(q):
... pass
... derp = i + 1
... print derp
...
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
NameError: name 'i' is not defined
## derp
>>> with open("quotes.txt") as q:
... for line in q:
... for i, l in enumerate(line):
... pass
... derp = i + 1
... print derp
...
>>>