diff options
author | Andrew M. Kuchling <amk@amk.ca> | 1998-08-18 19:38:54 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 1998-08-18 19:38:54 (GMT) |
commit | 42db27fedc6d1e1600eeb6fa68e7925890350255 (patch) | |
tree | e353722c6db8464ac3f93f7ca6cad552baa5b777 /Mac/mwerks | |
parent | ce4ba897be5e4fc116f7cf805f38dec48cd5cfea (diff) | |
download | cpython-42db27fedc6d1e1600eeb6fa68e7925890350255.zip cpython-42db27fedc6d1e1600eeb6fa68e7925890350255.tar.gz cpython-42db27fedc6d1e1600eeb6fa68e7925890350255.tar.bz2 |
Added an example that uses signal.alarm() to time out an os.open() that
takes too long. This example relies on the fact that raising an
exception in a signal handler causes the exception to be re-raised
when the main line of the program resumes execution. Is this guaranteed
in CPython, or is this something that just happens to work by accident?
Also fixed a typo.
Diffstat (limited to 'Mac/mwerks')
0 files changed, 0 insertions, 0 deletions