Background thread

Jorge Louis De Castro jorge at
Sat Jun 25 12:36:57 CEST 2005


I'm new to python and I'm having trouble figuring out a way to have a thread running on the background that over rules the raw_input function. The example I'm working on is something like having a thread that prints "You're taking too long" every 10 seconds, while waiting for input from the user.
The problem is that I can only read (and in batch) the thread printout messages on the console after giving something to raw_input.
Is it not possible to have the thread print its stuff and then return to raw_input() ? Any code examples or pseudo-code or documentation directions will be highly appreciated.

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list