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 akaptur
Recipients akaptur, docs@python
Date 2014-07-18.22:45:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405723549.99.0.479599106625.issue22008@psf.upfronthosting.co.za>
In-reply-to
Content
The symbol table's syntax error about unqualified exec is missing the word "because".

>>> def foo():
...     exec "a = 1"
...     def bar():
...         print a
... 
  File "<stdin>", line 2
SyntaxError: unqualified exec is not allowed in function 'foo' it contains a nested function with free variables
History
Date User Action Args
2014-07-18 22:45:50akaptursetrecipients: + akaptur, docs@python
2014-07-18 22:45:49akaptursetmessageid: <1405723549.99.0.479599106625.issue22008@psf.upfronthosting.co.za>
2014-07-18 22:45:49akapturlinkissue22008 messages
2014-07-18 22:45:49akapturcreate