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

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Sep 1 00:28:04 CEST 2014


Victor Stinner wrote:

As written in the PEP, if you want to be notified of the signal, set a signal handler which raises an exception.

I'm not convinced that this covers all possible use cases. It might be all right if you have control over the signal handler, but what if you don't?

I think it's best if the functions in the os module remain thin wrappers that expose the OS functionality as fully and directly as possible. Anything else should be provided by higher-level facilities.

-- Greg



More information about the Python-Dev mailing list