[Python-porting] Installing different files on Python 2/3

Neil Muller drnlmuller at gmail.com
Tue Jul 22 16:43:26 CEST 2014


On 22 July 2014 15:02, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
>
> The only thing that doesn't match is that I replaced util.pyexec() by
> just exec(), as you suggested. And all the Google hits about
> unqualified exec wouldn't seem to apply to this code, as I'm supplying
> both globals and locals (though the empty locals dict is confusingly
> named globals_ here).

This looks a lot like http://bugs.python.org/issue21591 , which
suggests that exec(s, {}, {}) and "exec in {}, {}" aren't identical
when nested functions are involved.

-- 
Neil Muller
drnlmuller at gmail.com


More information about the Python-porting mailing list