[Python-Dev] Fixing send() (original) (raw)

Guido van Rossum guido@python.org
Thu, 25 Oct 2001 11:42:45 -0400


The bonehead who uses sendall with a non-blocking socket will, of course, get an EWOULDBLOCK (or platform equivalent) on an oversize send. Maybe EWOULDBLOCK should get turned into ButtHeadProgrammerError("Don't use sendall with a non-blocking socket")?

I think natural selection will take care of this breed. :-)

[I agree that this is the best way to fix the std lib, and that it is very important that it be fixed.]

Thanks!

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