[Python-Dev] RFC: PEP 475, Retry system calls failing with EINTR

Marko Rauhamaa marko at pacujo.net
Mon Sep 1 18:00:58 CEST 2014


"R. David Murray" <rdmurray at bitdance.com>:

> On Mon, 01 Sep 2014 14:15:52 +0300, Marko Rauhamaa <marko at pacujo.net> wrote:
>>  * Allow the application to react to signals immediately in the main
>>    flow.
>
> You don't want to be writing your code in Python then. In Python you
> *never* get to react immediately to signals. The interpreter sets a
> flag and calls the python signal handler later. Yes, the call is ASAP,
> but ASAP is *not* "immediately".

You don't have to get that philosophical.

"Immediately" means, "without delay", "without further I/O".


Marko


More information about the Python-Dev mailing list