Queue can result in nested monitor deadlock

Ove Svensson ove.svensson at ericsson.com
Wed Apr 19 02:53:20 EDT 2006


"Jonathan Amsterdam" <jbamsterdam at gmail.com> writes:

> No redesign necessary. I simply make M be the Queue's mutex, via the
> LQueue class I posted. I am making the modest suggestion that this
> feature be documented and exposed in the Queue class.
> 

Even though LQueue is the correct sollution to the problem, why not fix
Queue.Queue? Fixing Queue.Queue would not break any existing code and we
don't have to pollute the namespace with yet another class. 




More information about the Python-list mailing list