[Python-Dev] Iteration variables and list comprehensions (original) (raw)

Neil Schemenauer nas@python.ca
Tue, 29 May 2001 10:01:41 -0700


David Beazley wrote:

Just as an aside, I have never intentionally used the iterator variable of a list comprehension after the operation has completed.

I've been bitten by this one once. It took a while to figure out the problem. I'm not sure that we can change it now though.

Neil