summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2017-09-07 21:18:21 (GMT)
committerGitHub <noreply@github.com>2017-09-07 21:18:21 (GMT)
commit888bbdc192ec4db888a294ef758cf5510442dc9a (patch)
tree3b4be0554916502e37ef83efd8ea7e11e6ef8c70 /Misc
parent17c9ac927b97472dd080174fde709d9234848195 (diff)
downloadcpython-888bbdc192ec4db888a294ef758cf5510442dc9a.zip
cpython-888bbdc192ec4db888a294ef758cf5510442dc9a.tar.gz
cpython-888bbdc192ec4db888a294ef758cf5510442dc9a.tar.bz2
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>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2017-09-06-06-50-41.bpo-27340.GgekV5.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-09-06-06-50-41.bpo-27340.GgekV5.rst b/Misc/NEWS.d/next/Library/2017-09-06-06-50-41.bpo-27340.GgekV5.rst
new file mode 100644
index 0000000..2d05e10
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2017-09-06-06-50-41.bpo-27340.GgekV5.rst
@@ -0,0 +1,3 @@
+SSLSocket.sendall() now uses memoryview to create slices of data. This fixes
+support for all bytes-like object. It is also more efficient and avoids
+costly copies.