KeyboardInterrupt

Daniel Stutzbach daniel at stutzbachenterprises.com
Thu Dec 10 18:08:40 EST 2009


On Thu, Dec 10, 2009 at 4:42 PM, mattia <gervaz at gmail.com> wrote:

> def go():
>    threads = [Thread(target=do_work, args=()) for _ in range(2)]
>    for t in threads:
>        t.start()
>    for t in threads:
>        t.join()
>

The KeyboardInterrupt goes to the main thread, which is sitting there in
t.join() with no exception handler around it.

--
Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091210/4224f36a/attachment-0001.html>


More information about the Python-list mailing list