[Python-Dev] variable name resolution in exec is incorrect

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 27 05:40:16 CEST 2010


On 27/05/10 12:38, Guido van Rossum wrote:
> the compiler normally uses syntactic clues to decide
> whether to generate code using closures, in particular, the presence
> of nested functions.

Well, the compiler could be passed a flag indicating that
the code is being compiled for an exec statement.

-- 
Greg


More information about the Python-Dev mailing list