[issue12165] Does nonlocal include global?

2011-05-25 Thread Lukas Petru
Lukas Petru added the comment: 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 ref

[issue12165] Does nonlocal include global?

2011-05-23 Thread Lukas Petru
New submission from Lukas Petru : Can "nonlocal x" declaration also reference global x? I would assume that global scope automatically encloses all other scopes. But the nonlocal keyword seems to exclude global scope. This seems counter-intuitive. (maybe bug in implementation?) F