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 terry.reedy
Recipients georg.brandl, siona, terry.reedy
Date 2009-09-18.04:35:30
SpamBayes Score 1.005535e-06
Marked as misclassified No
Message-id <1253248537.33.0.256476769632.issue6925@psf.upfronthosting.co.za>
In-reply-to
Content
Except for the variable name and 3.1 print(), that is exactly what I
tested before posting:
>>> 
{}

Was 2.x different?

Anyway, from Wikipedia: "In computer programming, a free variable is a
variable referred to in a function that is not a local variable or an
argument of that function." (from page called 'Free variables in Lisp")
Globals qualify under that definition. It goes on to say "An upvalue is
a free variable that has been bound (closed over) with a closure." which
is what Python calls nonlocal or cell var.
History
Date User Action Args
2009-09-18 04:35:41terry.reedysetrecipients: + terry.reedy, georg.brandl, siona
2009-09-18 04:35:37terry.reedysetmessageid: <1253248537.33.0.256476769632.issue6925@psf.upfronthosting.co.za>
2009-09-18 04:35:35terry.reedylinkissue6925 messages
2009-09-18 04:35:32terry.reedycreate