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

[Python-Dev] Fixing send()

[Python-Dev] Fixing send() [Python-Dev] Fixing send()Guido van Rossum guido@python.org
Thu, 25 Oct 2001 11:16:29 -0400
[Jeremy]
> Can you offer a brief explanation of why we're doing this after all?
> I thought we concluded yesterday that we would fix this library.
> (That's what the last message before this one said.)

Fixing the library would mean adding a loop like this to each
application that uses send and currently doesn't check the return
value:

<    sock.send(data)
---
>    while data:
>        n = sock.send(data)
>        data = data[n:]

I find this more attractive:

<    sock.send(data)
---
>    sock.sendall(data)

--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