]> granicus.if.org Git - python/commit
bpo-27340: Use memoryview in SSLSocket.sendall() (#3384)
authorChristian Heimes <christian@python.org>
Thu, 7 Sep 2017 21:18:21 +0000 (14:18 -0700)
committerGitHub <noreply@github.com>
Thu, 7 Sep 2017 21:18:21 +0000 (14:18 -0700)
commit888bbdc192ec4db888a294ef758cf5510442dc9a
tree3b4be0554916502e37ef83efd8ea7e11e6ef8c70
parent17c9ac927b97472dd080174fde709d9234848195
bpo-27340: Use memoryview in SSLSocket.sendall() (#3384)

* bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes <christian@python.org>
* Cast view to bytes, fix typo

Signed-off-by: Christian Heimes <christian@python.org>
Lib/ssl.py
Lib/test/test_ssl.py
Misc/NEWS.d/next/Library/2017-09-06-06-50-41.bpo-27340.GgekV5.rst [new file with mode: 0644]