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/018124.html below:

[Python-Dev] Fixing send()

[Python-Dev] Fixing send() [Python-Dev] Fixing send()Guido van Rossum guido@python.org
Thu, 25 Oct 2001 10:59:34 -0400
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=5470&atid=305470

If you have an objection, please let me know.  I think this is
important enough to bypass the feature freeze -- it's the best way to
fix the very real bug (on FreeBSD) of unchecked send() calls.  (The
alternative would be to add a loop to every use of send().)

The sendall() call allows us to fix the standard library modules that
currently don't check for send()'s return value, without breaking any
existing code, by changing sock.send(data) into sock.sendall(data).
Other alternatives intended to fix the problem of unchecked send()
calls in standard library module without having to change all send()
calls were deemed to dangerous (see the SF patch discussion).

I think Anthony is going to add this to the 2.1.2 bugfix release as
well -- with the same argument for breaking the feature freeze.

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



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