Message282260
Marco, your patch removes the description for class blocks. Is that your intent, or just an accident? See r53954.
My understanding is “function block” is there to distinguish these three modes:
def foo():
# Function block
print(locals())
class Bar:
# Class block
print(locals())
# Module level
print(locals())
There are patches proposed at Issue 17546 which also address this reference to “free variables”. Perhaps you could provide feedback on them?
Also see Issue 26683 and Issue 12165, about what free variables, locals, nonlocals, non-globals, etc can mean to different people. |
|
Date |
User |
Action |
Args |
2016-12-03 01:21:49 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, docs@python, xdegaye, marco.buttu, mdk |
2016-12-03 01:21:49 | martin.panter | set | messageid: <1480728109.12.0.845406162886.issue28853@psf.upfronthosting.co.za> |
2016-12-03 01:21:48 | martin.panter | link | issue28853 messages |
2016-12-03 01:21:47 | martin.panter | create | |
|