Issue 9870: compile and nested scopes (original) (raw)
Issue9870
Created on 2010-09-16 08:11 by webcubator, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Files |
|
|
|
File name |
Uploaded |
Description |
Edit |
tmp1.py |
webcubator,2010-09-16 08:11 |
|
|
Messages (2) |
|
|
msg116515 - (view) |
Author: Sergey (webcubator) |
Date: 2010-09-16 08:11 |
See attached tmp1.py It is very simple but it doesn't work It raises NameError NameError: global name 'arg' is not defined |
|
|
msg116578 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2010-09-16 17:31 |
If you want to execute code as in the global namespace, don't supply a separate "locals" dict to eval/exec. |
|
|
History |
|
|
|
Date |
User |
Action |
Args |
2022-04-11 14:57:06 |
admin |
set |
github: 54079 |
2010-09-16 17:31:21 |
georg.brandl |
set |
status: open -> closednosy: + georg.brandlmessages: + resolution: not a bug |
2010-09-16 08:11:19 |
webcubator |
create |
|