Message106447
| Author |
hawkett |
| Recipients |
hawkett |
| Date |
2010年05月25日.16:49:06 |
| SpamBayes Score |
0.02264971 |
| Marked as misclassified |
No |
| Message-id |
<1274806148.14.0.229053975552.issue8819@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|