[issue8819] variable resolution within exec() incorrect

Mark Dickinson report at bugs.python.org
Tue May 25 20:53:04 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

Judging by the issue 991196 discussion, the described behaviour is intentional.  In particular, this behaviour isn't likely to change in Python 2.x:  2.6 is in bugfix only mode, and 2.7 is too close to release to start messing with internals.

You may be able to make an argument that the behaviour should be changed in Python 3.x; that discussion should happen on python-dev or python-ideas rather than on the tracker, though.

----------
resolution:  -> duplicate
status: open -> closed
superseder:  -> An inconsistency with nested scopes

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8819>
_______________________________________


More information about the Python-bugs-list mailing list