[issue9870] compile and nested scopes

2010-09-16 Thread Georg Brandl
Georg Brandl added the comment: If you want to execute code as in the global namespace, don't supply a separate "locals" dict to eval/exec. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python tracker

[issue9870] compile and nested scopes

2010-09-16 Thread Sergey
New submission from Sergey : See attached tmp1.py It is very simple but it doesn't work It raises NameError NameError: global name 'arg' is not defined -- components: None files: tmp1.py messages: 116515 nosy: webcubator priority: normal severity: normal status: open title: compile and n