This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients belopolsky, dfugate, georg.brandl, loewis, terry.reedy
Date 2009-01-11.13:45:02
SpamBayes Score 0.044693835
Marked as misclassified No
Message-id <1231681504.2.0.0238376121534.issue4220@psf.upfronthosting.co.za>
In-reply-to
Content
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 ""
History
Date User Action Args
2009-01-11 13:45:04georg.brandlsetrecipients: + georg.brandl, loewis, terry.reedy, belopolsky, dfugate
2009-01-11 13:45:04georg.brandlsetmessageid: <1231681504.2.0.0238376121534.issue4220@psf.upfronthosting.co.za>
2009-01-11 13:45:03georg.brandllinkissue4220 messages
2009-01-11 13:45:02georg.brandlcreate