commit | 42db27fedc6d1e1600eeb6fa68e7925890350255 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Tue Aug 18 19:38:54 1998 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Tue Aug 18 19:38:54 1998 +0000 |
tree | e353722c6db8464ac3f93f7ca6cad552baa5b777 | |
parent | ce4ba897be5e4fc116f7cf805f38dec48cd5cfea [diff] |
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.