[EMAIL PROTECTED] writes:
> The main problem with this is that the yield leaves the lock locked.
> If any other thread wants to read the generator it will block. 

Ouch, good catch.  Do you see a good fix other than try/finally?
Is there a classical way to do it with coroutines and semaphores?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to