Message92800
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. |
|
Date |
User |
Action |
Args |
2009-09-18 04:35:41 | terry.reedy | set | recipients:
+ terry.reedy, georg.brandl, siona |
2009-09-18 04:35:37 | terry.reedy | set | messageid: <1253248537.33.0.256476769632.issue6925@psf.upfronthosting.co.za> |
2009-09-18 04:35:35 | terry.reedy | link | issue6925 messages |
2009-09-18 04:35:32 | terry.reedy | create | |
|