[Python-Dev] variable name resolution in exec is incorrect (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 27 05:40:16 CEST 2010
- Previous message: [Python-Dev] variable name resolution in exec is incorrect
- Next message: [Python-Dev] variable name resolution in exec is incorrect
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] variable name resolution in exec is incorrect
- Next message: [Python-Dev] variable name resolution in exec is incorrect
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]