[issue4246] execution model - clear and complete example in documentation

2011-11-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Py

[issue4246] execution model - clear and complete example in documentation

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue4246] execution model - clear and complete example in documentation

2010-11-20 Thread Cherniavsky Beni
Cherniavsky Beni added the comment: The FAQ for this was much improved in 2009 (issue 7290): http://docs.python.org/py3k/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value To support the claim that this keeps biting people, at least the following bug repo

[issue4246] execution model - clear and complete example in documentation

2010-07-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4246] execution model - clear and complete example in documentation

2008-11-08 Thread robwolfe
robwolfe <[EMAIL PROTECTED]> added the comment: People seem to understand that they can not use variable before definition. But this dramatically change when they come across nested functions. They don't understand when variable can be resolved from outer scope and when can not, e.g: def outer()

[issue4246] execution model - clear and complete example in documentation

2008-11-07 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Your example seem too verbose and diffuse. Perhaps something more focused on what people do wrong would be more helpful. I presume you mean something like this -- with or without x=2 before the def. >>> def f(): print (x) x

[issue4246] execution model - clear and complete example in documentation

2008-11-01 Thread robwolfe
New submission from robwolfe <[EMAIL PROTECTED]>: I'd like to propose adding some complete example regarding scopes and bindings resolving to execution model description. There is no week on pl.comp.lang.python without a question about UnboundLocalError problem. I'm getting tired answering that.