Georg Brandl <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue6925>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com