callback confusion

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Dec 10 00:10:39 EST 2007


En Sat, 08 Dec 2007 14:46:46 -0300, Donn Ingle <donn.ingle at gmail.com>  
escribió:

> UnboundLocalError: local variable 'kills' referenced before assignment
>
> I'm amazed that I've spent so much time with Python and something like  
> that
> totally stumps me!?
>
>> FWIW, this is a FAQ.
> If you have a link, that'll help.

See  
<http://www.python.org/doc/faq/programming/#how-do-you-set-a-global-variable-in-a-function>  
and the next question.

-- 
Gabriel Genellina




More information about the Python-list mailing list