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