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 use the signal-module and setup a
SIGALRM-handler.

http://docs.python.org/lib/module-signal.html

-- 
- Rikard - http://bos.hack.org/cv/
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to