[issue6925] Doc for locals and vars
Georg Brandl
report at bugs.python.org
Thu Sep 17 14:27:46 CEST 2009
Georg Brandl <georg at python.org> added the comment:
Free variables *are* returned by locals(). (Note that globals *aren't*
free variables.) For example, try this:
def f():
x = 1
def g():
print locals()
g()
f()
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6925>
_______________________________________
More information about the Python-bugs-list
mailing list