Losing words

John Doe john at johniedoe.com
Mon Apr 1 11:21:28 EDT 2019

On 2019-04-01, David Raymond <David.Raymond at tomtom.com> wrote:
> https://docs.python.org/3.7/library/socket.html#socket.socket.send
> .send returns the number of bytes that it actually succeeded in sending. From the docs: "Applications are responsible for checking that all data has been sent; if only some of the data was transmitted, the application needs to attempt delivery of the remaining data."
> You could also switch to using .sendall, which will do retries for you.
> But in either case you get a return code which lets you know if everything went through ok.

Tried *sendall* and same result just first word was sent.

More information about the Python-list mailing list