Timeout on file write?

Mathias Waack M.Waack at gmx.de
Sun Jun 27 08:29:56 EDT 2004


Chris Farley wrote:

> I would like to gracefully handle situations such as when the paper
> is out or the printer is powered off. Right now the program just
> hangs.

The simplest way would be to use a timeout as described in the python
lib docs, have a look at the signal module. 

Mathias



More information about the Python-list mailing list