<div class="gmail_quote">On Thu, Dec 10, 2009 at 4:42 PM, mattia <span dir="ltr"><<a href="mailto:gervaz@gmail.com">gervaz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

def go():<br>
    threads = [Thread(target=do_work, args=()) for _ in range(2)]<br>
    for t in threads:<br>
        t.start()<br>
    for t in threads:<br>
        t.join()<br></blockquote></div><br>The KeyboardInterrupt goes to the main thread, which is sitting there in t.join() with no exception handler around it.<br><blockquote style="margin: 1.5em 0pt;">--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>