[Python-Dev] Fixing send()

Gordon McMillan gmcm@hypernet.com
Thu, 25 Oct 2001 11:36:49 -0400


[Guido]
> I'm planning to add a sendall() method to the socket object.  See
> the SF patch:
> 
> http://sf.net/tracker/index.php?func=detail&aid=474307&group_id=5
> 470&atid=305470
> 
> If you have an objection, please let me know.  I think this is
> important enough to bypass the feature freeze 

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 agree that this is the best way to fix the std lib, and that it is 
very important that it be fixed.]

- Gordon