global threading.Lock not locking correctly?

Anton Muhin antonmuhin at sendmail.ru
Tue Feb 4 10:02:40 EST 2003


Afanasiy wrote:
> # 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
> 
[snipped]

Several runs don't lead to problems. Are you sure that it doesn't work 
as supposed?

Anton.





More information about the Python-list mailing list