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 Neil Muller
Recipients Neil Muller, benjamin.peterson, brett.cannon, georg.brandl, gvanrossum, ncoghlan, rjordens, terry.reedy
Date 2014-07-22.21:25:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Poking at the source of the error suggests the problem is in symtable.c:

The offending logic looks to be (around line 1124 in python 2.7 at revision 91767:4cef7b0ec659):

if (s->v.Exec.globals) {
   st->st_cur->ste_unoptimized |= OPT_BARE_EXEC;

since OPT_BARE_EXEC is the flag that triggers the exception.

As far as I can see, this makes no provision for the exec() case, and only avoids setting OPT_BARE_EXEC if globals is specified using the old syntax.
Date User Action Args
2014-07-22 21:25:41Neil Mullersetrecipients: + Neil Muller, gvanrossum, brett.cannon, georg.brandl, terry.reedy, ncoghlan, benjamin.peterson, rjordens
2014-07-22 21:25:41Neil Mullersetmessageid: <>
2014-07-22 21:25:41Neil Mullerlinkissue21591 messages
2014-07-22 21:25:41Neil Mullercreate