[issue7276] UnboundLocalError scoping problem with nested functions

2009-11-09 Thread R. David Murray
R. David Murray added the comment: The relevant section is http://docs.python.org/reference/executionmodel.html#naming-and-binding. Perhaps a cross-reference should be added to the assignment section. If you think it should, please open a new issue for that. I have opened issue 7290 with a su

[issue7276] UnboundLocalError scoping problem with nested functions

2009-11-09 Thread Ole Laursen
Ole Laursen added the comment: OK, sorry, I was under the impression that the global binding was still available (I can't find anything to the contrary here http://docs.python.org/reference/simple_stmts.html#assignment-statements ) but it's obviously using a static definition of scope. The e