Message106447
A discussion on stack overflow - http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec - has led to the conclusion that the variable lookup behaviour within code run using exec() is not behaving as expected. Variable lookup inside a class definition does not search the enclosing scope's locals() prior to issuing a NameError - there are full details and test cases at the above URL. |
|
Date |
User |
Action |
Args |
2010-05-25 16:49:08 | hawkett | set | recipients:
+ hawkett |
2010-05-25 16:49:08 | hawkett | set | messageid: <1274806148.14.0.229053975552.issue8819@psf.upfronthosting.co.za> |
2010-05-25 16:49:06 | hawkett | link | issue8819 messages |
2010-05-25 16:49:06 | hawkett | create | |
|