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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com