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 johnf
Recipients johnf
Date 2014-12-25.17:05:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419527106.51.0.659290194447.issue23113@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7.8 (v2.7.8:ee879c0ffa11, Jun 29 2014, 21:07:35) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> def outer():
...     def inner(arg):
...         len(arg)
...     exec('', {})
... 
  File "<stdin>", line 4
SyntaxError: unqualified exec is not allowed in function 'outer' it contains a nested function with free variables
>>> 
>>> def outer():
...     def inner(arg):
...         len(arg)
...     exec '' in {}
... 
>>>
History
Date User Action Args
2014-12-25 17:05:06johnfsetrecipients: + johnf
2014-12-25 17:05:06johnfsetmessageid: <1419527106.51.0.659290194447.issue23113@psf.upfronthosting.co.za>
2014-12-25 17:05:06johnflinkissue23113 messages
2014-12-25 17:05:05johnfcreate