exception thrown from I/O interrupted by signal
Volker Apelt
gq437x at yahoo.de
Wed Nov 20 06:12:07 EST 2002
Which exception is thrown from a I/O operation that is
interrupted by a signal?
Which specification will catch it?
try:
line = f.readline()
except WhatIsIt, e:
print e
----- python lib docu
_underline_ added by me.
http://www.python.org/doc/current/lib/module-signal.html
7.1 signal -- Set handlers for asynchronous events
# When a signal arrives during an I/O operation, it is _possible_ that the
I/O operation raises _an_exception_ after the signal handler returns. This
is dependent on the underlying Unix system's semantics regarding
interrupted system calls.
--
Volker Apelt
More information about the Python-list
mailing list