Timeout on read()?

lec englim at pc.jaring.my
Tue Aug 15 22:46:08 EDT 2000


Is it possible to implement timeout on read?

eg.

answer = sys.stdin.readline()

but I want it to timeout after 30 seconds.

--
Thomas.






More information about the Python-list mailing list