[Python-Dev] collections module

Aahz aahz at pythoncraft.com
Fri Jan 9 17:35:26 EST 2004


On Fri, Jan 09, 2004, Josiah Carlson wrote:
>
> One thing that bothered me about using the three mutexes as given in
> Queue.Queue is that it relies on the fact that a thread can unlock an
> underlying thread.lock that it didn't acquire.  To me, this is strange
> behavior.

If that bothers you, don't use threading.Condition, either.  All the
synchronizing capabilities in Python rely on the ability of threads to
release a lock acquired by another thread.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

A: No.
Q: Is top-posting okay?



More information about the Python-Dev mailing list