[Python-3000] Efficient LC's which don't leak the iteration variables (was Re: Py3k release schedule worries)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Dec 21 01:21:37 CET 2006


Jim Jewett wrote:

> Knowing which i's to rename strikes *me* as tricky,

It shouldn't be too hard if you approach it the
right way. One way would be to temporarily change
the symbol table entry for the loop var when
compiling the loop body and any nested functions
so that it refers to a different slot in the
locals.

--
Greg


More information about the Python-3000 mailing list