Guido van Rossum added the comment:
This can't be fixed directly -- the pthreads mutex is not an
interruptable system call.
However there's a simple (though expensive) work-around: use a very long
timeout. The timeout version of waiting for a lock is a busy-wait with a
short sleep (much less tha
New submission from Ronald Oussoren:
The scriptlet below hangs (as expected) but is also not interuptable by
Ctrl+C, at least on Linux and Mac OS X:
from Queue import Queue, Empty, Full
q = Queue()
q.get(True)
This is due to Threading.Condition.wait not being interuptable.
--
compone