[Python-Dev] Two random and nearly unrelated ideas

Guido van Rossum guido@python.org
Wed, 04 Sep 2002 07:44:32 -0400


> > Second (also considered during the above edit), it would be nice to get rid
> > of the ticker altogether in systems with proper signal support.  On those
> > platforms couldn't an alarm replace polling for the ticker?  
> 
> Not before all all Python I/O calls are converted to be EINTR-safe.
> 
> After running into some problems with I/O interrupted by signals I tried to
> fix it myself but it requires a lot of work in some of the hairiest places 
> in the Python codebase.

Signals: just say no.  It is impossible to write correct code in the
presence of signals.

--Guido van Rossum (home page: http://www.python.org/~guido/)