Terry J. Reedy added the comment:
The exception appears to be intentional, though I do not know what a
'qualified' exec would be. But since the tuple form is intended to mimic 3.x
exec, and since a reduced version of your example
c = '''
def g():
def f():
if True:
exec("", {}, {})
'''
compile(c, "<code>", "exec")
runs fine in 3.4, I agree that this appears to be a 2.7 compiler bug.
----------
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, terry.reedy
stage: -> needs patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue21591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com