>>>>> Piet van Oostrum <p...@cs.uu.nl> (PvO) wrote:

>PvO>     def run(self):
>PvO>         with lock:

All the 'with lock:' lines should have been 'with self.lock:' but as
lock is also a global variable, it did work. Of course you can decide to
use only the global variable and get rid of the self.lock altogether. I
am not very fond of global variables myself, however, that's why I used
the self.lock.

-- 
Piet van Oostrum <p...@cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to