[issue4220] Builtins treated as free variables?
Georg Brandl
report at bugs.python.org
Sun Jan 11 14:45:04 CET 2009
Georg Brandl <georg at python.org> added the comment:
There is no way for the interpreter to distinguish between builtins and
"other" types of free variables.
If you need unqualified exec to work in an innner function, use function
parameters with defaults, like this:
def a():
def b(long=long):
x = long(3)
exec ""
----------
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4220>
_______________________________________
More information about the Python-bugs-list
mailing list