(original) (raw)
I don't have a strong opinion on this either. The distinction between send() and send\_all() makes sense to me though (send\_all() works hard to get all your data out, send() only does what it can quickly).
Personally for calls like select() I think returning early on EINTR makes sense, it's usually part of a select loop anyway.On Fri, Aug 30, 2013 at 10:02 AM, Antoine Pitrou <solipsis@pitrou.net> wrote:
On Fri, 30 Aug 2013 12:29:12 +0200I don't have any precise opinion on this. It's true that we should have
Charles-Fran�ois Natali <cf.natali@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?
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 :-))
Regards
Antoine.
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
--
--Guido van Rossum (python.org/\~guido)