Message219417
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. |
|
Date |
User |
Action |
Args |
2014-05-30 19:33:50 | terry.reedy | set | recipients:
+ terry.reedy, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, rjordens |
2014-05-30 19:33:50 | terry.reedy | set | messageid: <1401478430.9.0.401705271276.issue21591@psf.upfronthosting.co.za> |
2014-05-30 19:33:50 | terry.reedy | link | issue21591 messages |
2014-05-30 19:33:50 | terry.reedy | create | |
|