En Wed, 21 Oct 2009 16:06:31 -0300, geremy condra <debat...@gmail.com>
escribió:
I decided to play around with nonlocal declarations today, and was
somewhat surprised when a call to nonlocals() resulted in 'nonlocals
is not defined'. Is there an a standard equivalent to globals() or
locals() for variables in outer nested scopes?
Not that I know of - and as someone pointed out recently, vars() should
include those variables instead of simply returning locals().
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list