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 Lukas.Petru
Recipients Lukas.Petru, eric.araujo
Date 2011-05-25.09:47:09
SpamBayes Score 1.0982218e-06
Marked as misclassified No
Message-id <1306316830.57.0.989977127633.issue12165@psf.upfronthosting.co.za>
In-reply-to
Content
Well, I read that text before, but it may be because I am not native english speaker that I interpret the text differently. Let's go through it one step at a time and show me where I am wrong.

1) The nonlocal statement causes the listed identifiers to refer to previously bound variables in the nearest enclosing scope.

- I assume here that global scope is an enclosing scope (global encloses everything in the module).

2) The statement allows encapsulated code to rebind variables outside of the local scope besides the global (module) scope.

- Here I interpret "besides" as "in addition to".

Nothing specifically says that global bindings are excluded.
History
Date User Action Args
2011-05-25 09:47:10Lukas.Petrusetrecipients: + Lukas.Petru, eric.araujo
2011-05-25 09:47:10Lukas.Petrusetmessageid: <1306316830.57.0.989977127633.issue12165@psf.upfronthosting.co.za>
2011-05-25 09:47:09Lukas.Petrulinkissue12165 messages
2011-05-25 09:47:09Lukas.Petrucreate