[issue1360] Queue.get() can't be interrupted with Ctrl-C unless timed out

Guido van Rossum report at bugs.python.org
Tue Oct 30 01:53:11 CET 2007


Guido van Rossum added the comment:

This (and the other issue you mention) is because the regular acquire()
method on a basic lock cannot be interrupted.  That's unlikely to go
away, so you'll just have to live with this.  As you've discovered,
specifying a timeout solves the issue.  Since code running in threads
doesn't receive signals anyway (in Python), it would be fairly pointless
to slow down lock acquisition in order to support keyboard interrupts.

----------
nosy: +gvanrossum
resolution:  -> wont fix
status: open -> closed

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1360>
__________________________________


More information about the Python-bugs-list mailing list