Message98101
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. |
|
Date |
User |
Action |
Args |
2010-01-21 07:32:39 | adrianmay | set | recipients:
+ adrianmay |
2010-01-21 07:32:39 | adrianmay | set | messageid: <1264059159.7.0.610108234991.issue7747@psf.upfronthosting.co.za> |
2010-01-21 07:32:37 | adrianmay | link | issue7747 messages |
2010-01-21 07:32:37 | adrianmay | create | |
|