northof40 <shearich...@gmail.com> writes:
> I'm thinking of some logic where a raw_input call is executed and then
> if more than X seconds elapses before the prompt is replied to the
> process writes a message "Sorry too slow" (or similar).

The simplest way to do this is with the alarm function and a signal
handler.  See the docs for the signal module.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to