[Python-Dev] EINTR handling...

Antoine Pitrou solipsis at pitrou.net
Fri Aug 30 19:02:07 CEST 2013

On Fri, 30 Aug 2013 12:29:12 +0200
Charles-François Natali <cf.natali at gmail.com> wrote:
> Furthermore, the stdlib code base is not consistent: some code paths
> handle EINTR, e.g. subprocess, multiprocessing, sock_sendall() does
> but not sock_send()...
> Just grep for EINTR and InterruptedError and you'll be amazed.
> GHC, the JVM and probably other platforms handle EINTR, maybe it's
> time for us too?

I don't have any precise opinion on this. It's true that we should have
a systematic approach, I just don't know if all interfaces should
handler EINTR automatically, or only the high-level ones.
(for the sake of clarity, I'm fine with either :-))



More information about the Python-Dev mailing list