[issue7747] Function variable wrongly reported unassigned

2010-01-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - normal type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7747 ___

[issue7747] Function variable wrongly reported unassigned

2010-01-20 Thread Adrian May
New submission from Adrian May adrian.alexander@gmail.com: Hi folks, The attached program says: $ ./bug.py a None b Traceback (most recent call last): File ./bug.py, line 49, in module print number(s) File ./bug.py, line 34, in foo while eat != None: UnboundLocalError: local

[issue7747] Function variable wrongly reported unassigned

2010-01-20 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is not a bug, see http://docs.python.org/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed