global threading.Lock not locking correctly?
antonmuhin at sendmail.ru
Tue Feb 4 16:40:31 CET 2003
> On Tue, 04 Feb 2003 18:02:40 +0300, Anton Muhin <antonmuhin at sendmail.ru>
>>># My logic tells me this should never print 'OOPS', yet it does.
>>># Can someone tell me why? (P.S. this is simplified example code)
>>>import threading, time
>>Several runs don't lead to problems. Are you sure that it doesn't work
> What OS? My runs definitely print OOPS.
Alex Martelli is as usually right---you forgot ().
Funny thing, under SciTE it runs correclty.
More information about the Python-list