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 tim.peters
Recipients camshaka, eric.smith, tim.peters
Date 2018-07-31.14:13:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533046393.08.0.56676864532.issue34291@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, the assignment does "hide the global definition of g".  But this determination is made at compile time, not at run time:  an assignment to `g` _anywhere_ inside `f()` makes _every_ appearance of `g` within `f()` local to `f`.
History
Date User Action Args
2018-07-31 14:13:13tim.peterssetrecipients: + tim.peters, eric.smith, camshaka
2018-07-31 14:13:13tim.peterssetmessageid: <1533046393.08.0.56676864532.issue34291@psf.upfronthosting.co.za>
2018-07-31 14:13:13tim.peterslinkissue34291 messages
2018-07-31 14:13:13tim.peterscreate