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 levkivskyi
Recipients Camion, levkivskyi, r.david.murray, skrah
Date 2017-12-19.23:54:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513727652.06.0.213398074469.issue32361@psf.upfronthosting.co.za>
In-reply-to
Content
Stefan, your last example is formally speaking OK, if one reads the "Execution model" literally. The original example is however too ambiguous, so it is good that it triggers an error.

I think there is a chance to improve the error message here, but I didn't think about this carefully (in particular, a situation where `global` appears after the inner function `h` definition worries me).
History
Date User Action Args
2017-12-19 23:54:12levkivskyisetrecipients: + levkivskyi, r.david.murray, skrah, Camion
2017-12-19 23:54:12levkivskyisetmessageid: <1513727652.06.0.213398074469.issue32361@psf.upfronthosting.co.za>
2017-12-19 23:54:12levkivskyilinkissue32361 messages
2017-12-19 23:54:12levkivskyicreate