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 martin.panter
Recipients docs@python, marco.buttu, martin.panter, mdk, r.david.murray, xdegaye
Date 2016-12-03.01:21:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480728109.12.0.845406162886.issue28853@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-12-03 01:21:49martin.pantersetrecipients: + martin.panter, r.david.murray, docs@python, xdegaye, marco.buttu, mdk
2016-12-03 01:21:49martin.pantersetmessageid: <1480728109.12.0.845406162886.issue28853@psf.upfronthosting.co.za>
2016-12-03 01:21:48martin.panterlinkissue28853 messages
2016-12-03 01:21:47martin.pantercreate