A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-October/018127.html below:

[Python-Dev] Fixing send()

[Python-Dev] Fixing send() [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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4