Timeout on read()?

lec englim at pc.jaring.my
Thu Aug 17 06:45:15 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