exec() changed behaviour in Python 3
Closed this issue · 2 comments
kkumer commented
... and cannot change variables in local scope. See here. This means nontrivial rewriting of some code before transition to Python 3 becomes possible.
kkumer commented
dict comprehension solves at least part of the problem not involving function definitions from string.
kkumer commented
exec
's remaining in the code only define some functions and there are no variables changing values in scope local to those functions. So this look resolved.