[issue7747] Function variable wrongly reported unassigned

2010-01-21 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7747] Function variable wrongly reported unassigned

2010-01-21 Thread Adrian May
Adrian May added the comment: OK, Thanks. Sorry for the hassle. Adrian. -- type: behavior -> compile error ___ Python tracker ___ ___

[issue7747] Function variable wrongly reported unassigned

2010-01-20 Thread Ezio Melotti
Ezio Melotti 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 type: compile error

[issue7747] Function variable wrongly reported unassigned

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