Message79596
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 "" |
|
Date |
User |
Action |
Args |
2009-01-11 13:45:04 | georg.brandl | set | recipients:
+ georg.brandl, loewis, terry.reedy, belopolsky, dfugate |
2009-01-11 13:45:04 | georg.brandl | set | messageid: <1231681504.2.0.0238376121534.issue4220@psf.upfronthosting.co.za> |
2009-01-11 13:45:03 | georg.brandl | link | issue4220 messages |
2009-01-11 13:45:02 | georg.brandl | create | |
|