global threading.Lock not locking correctly?

Alex Martelli aleax at aleax.it
Tue Feb 4 13:17:45 EST 2003


Afanasiy wrote:
   ...
>>You're not CALLING the acquire and release methods, just
>>MENTIONING them.  use lock.acquire() and lock.release().
> 
> Hahaha, damnit! That's from too much Delphi...
> I wish I could toggle such things to be 'warnings'.
> 
> Or does PyChecker also check for this?

Sure, it gives a "Statement appears to have no effect" warning.

So why aren't you using it yet?  If you were, you wouldn't
have to ask...;-).


Alex





More information about the Python-list mailing list