Re: [Tutor] Cancelling a thread or blocked read

2007-03-31 Thread Christopher Arndt
Dhiraj Sharma schrieb: > 1. Is it possible to cancel (kill) a "child" thread from the main thread > in Python running on Windows? If you have control over the code of the thread, it could periodically check (in it's "run" method) an Event or Queue object, whether it should exit. See http://www.pyt

Re: [Tutor] Cancelling a thread or blocked read

2007-03-31 Thread Eike Welk
On Saturday 31 March 2007 07:07, Dhiraj Sharma wrote: > I would appreciate help on two related questions: > > 1. Is it possible to cancel (kill) a "child" thread from the main > thread in Python running on Windows? I don't think so. If you want to kill part of the program you must run it in a dif

Re: [Tutor] Cancelling a thread or blocked read

2007-03-31 Thread Rikard Bosnjakovic
On 3/31/07, Dhiraj Sharma <[EMAIL PROTECTED]> wrote: > 2. Also, is it possible to cancel (abort) a blocking read (say, to stdin) in > a function that can be called by a timer? The goal is to cancel the read if > input is not forthcoming within a specified time. For Windows, no idea. For Unix I'd

[Tutor] Cancelling a thread or blocked read

2007-03-31 Thread Dhiraj Sharma
I would appreciate help on two related questions: 1. Is it possible to cancel (kill) a "child" thread from the main thread in Python running on Windows? 2. Also, is it possible to cancel (abort) a blocking read (say, to stdin) in a function that can be called by a timer? The goal is to cancel