Re: Question about threading.Lock().aquire(waitflag)

2005-08-30 Thread Tim Peters
[EMAIL PROTECTED] > is treated as a boolean or as a number. > > Running on Windows, I get two different behaviors from > the following calls to acquire: > > aLock = threading.Lock() > ... > > # Thread 0 > # This one often succeeds > aLock.acquire(1) > ... > > # Thread 1 > # When

Question about threading.Lock().aquire(waitflag)

2005-08-30 Thread [EMAIL PROTECTED]
It's not clear to me from the Python docs whether waitflag is treated as a boolean or as a number. Running on Windows, I get two different behaviors from the following calls to acquire: aLock = threading.Lock() ... # Thread 0 # This one often succeeds aLock.acquire(1) ... #