This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 hobb0001
收信人 hobb0001
日期 2010-05-28.16:48:10
SpamBayes Score 0.13813415
Marked as misclassified
Message-id <1275065292.27.0.238026363438.issue8844@psf.upfronthosting.co.za>
In-reply-to
内容
Condition.wait() without a timeout will never raise a KeyboardInterrupt:

cond = threading.Condition()
cond.acquire()
cond.wait()

*** Pressing Ctrl-C now does nothing ***



If you pass a timeout to Condition.wait(), however, it does behave as expected:

cond.wait()

^CTraceback (most recent call last):
  File "/usr/lib/python3.1/threading.py", line 242, in wait
    _sleep(delay)
KeyboardInterrupt



This may affect other problems reported with multiprocessing pools. Most notably:
http://bugs.python.org/issue8296
http://stackoverflow.com/questions/1408356
历史
日期 用户 动作 参数
2010-05-28 16:48:12hobb0001修改recipients: + hobb0001
2010-05-28 16:48:12hobb0001修改messageid: <1275065292.27.0.238026363438.issue8844@psf.upfronthosting.co.za>
2010-05-28 16:48:10hobb0001链接issue8844 messages
2010-05-28 16:48:10hobb0001创建