Re: [Python-Dev] Inconsistent nesting of scopes in exec(..., locals())

2010-04-23 Thread Joachim B Haga
Nick Coghlan writes: > Joachim B Haga wrote: >> There seem to be an inconsistency in the handling of local scopes in >> exec. [...] >> >> The intermediate scope is searched for the variable name if the third >> argument to exec() is locals(), but not if it is l

[Python-Dev] Inconsistent nesting of scopes in exec(..., locals())

2010-04-23 Thread Joachim B Haga
o either globals() or locals(). This behaviour is quite unexpected, and I believe it qualifies as a bug. Tested with python 2.6.5 and 3.1.2. -- Joachim B Haga ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listin