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 variable 'eat' referenced before assignment but I reckon it is assigned. (I haven't tried it on a newer python because the junk I want to use with python says it only works with 2.5.2.) Cheers, Adrian. ---------- components: Interpreter Core files: bug.py messages: 98101 nosy: adrianmay severity: normal status: open title: Function variable wrongly reported unassigned type: compile error versions: Python 2.5 Added file: http://bugs.python.org/file15963/bug.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7747> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com