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