Author terry.reedy
Recipients benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, rjordens, terry.reedy
Date 2014-05-30.19:33:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401478430.9.0.401705271276.issue21591@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-05-30 19:33:50terry.reedysetrecipients: + terry.reedy, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, rjordens
2014-05-30 19:33:50terry.reedysetmessageid: <1401478430.9.0.401705271276.issue21591@psf.upfronthosting.co.za>
2014-05-30 19:33:50terry.reedylinkissue21591 messages
2014-05-30 19:33:50terry.reedycreate