Message216033
The NameError exception occuring on a generator expression referencing a local variable when the generator is called within exec() is the object of multiple entries in the bug tracker, see issue 13557.
msg 149096 in this issue suggests using exec(code, locals()) to fix the problem. It seems that what does currently the do_interact() method, and what is proposed in the patch is the recommended practice to handle this problem. |
|
Date |
User |
Action |
Args |
2014-04-13 20:12:38 | xdegaye | set | recipients:
+ xdegaye, georg.brandl, r.david.murray, Jurko.Gospodnetić, kay |
2014-04-13 20:12:38 | xdegaye | set | messageid: <1397419958.53.0.652966869394.issue21161@psf.upfronthosting.co.za> |
2014-04-13 20:12:38 | xdegaye | link | issue21161 messages |
2014-04-13 20:12:38 | xdegaye | create | |
|