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 beazley, georg.brandl
Date 2008-11-27.17:47:20
SpamBayes Score 0.0009245369
Marked as misclassified No
Message-id <1227808041.76.0.167850463445.issue4447@psf.upfronthosting.co.za>
In-reply-to
Content
It is "valid" Python 3 and the lack of an effect on the local is correct.

From Python 3 on, "exec" is a function and therefore lacks the special
magic properties it had in Python 2 that made it possible execute the
code "as if it just was written there".

In effect, what exec() modifies here is similar to what locals()
returns: a mere copy of the local namespace.
History
Date User Action Args
2008-11-27 17:47:22georg.brandlsetrecipients: + georg.brandl, beazley
2008-11-27 17:47:21georg.brandlsetmessageid: <1227808041.76.0.167850463445.issue4447@psf.upfronthosting.co.za>
2008-11-27 17:47:21georg.brandllinkissue4447 messages
2008-11-27 17:47:20georg.brandlcreate