This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients georg.brandl, siona, terry.reedy
Date 2009-09-17.12:27:44
SpamBayes Score 0.010190773
Marked as misclassified No
Message-id <1253190466.42.0.716334184738.issue6925@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2009-09-17 12:27:46georg.brandlsetrecipients: + georg.brandl, terry.reedy, siona
2009-09-17 12:27:46georg.brandlsetmessageid: <1253190466.42.0.716334184738.issue6925@psf.upfronthosting.co.za>
2009-09-17 12:27:45georg.brandllinkissue6925 messages
2009-09-17 12:27:45georg.brandlcreate