[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes
Christian Heimes added the comment: In Python 3.6 and master, SSLSocket.sendall() now accepts any bytes-like object that can be cast to bytes. Since it uses a sliced memoryview instead of sliced bytes, it avoids extra copies of the payload, too. -- resolution: -> fixed stage: patch re

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes
Christian Heimes added the comment: New changeset 9423f5d68874ff2e500cbe072c25f883cf754be8 by Christian Heimes in branch '3.6': [3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) (#3434) https://github.com/python/cpython/commit/9423f5d68874ff2e500cbe072c25f883cf754be8 --

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes
Christian Heimes added the comment: New changeset 888bbdc192ec4db888a294ef758cf5510442dc9a by Christian Heimes in branch 'master': bpo-27340: Use memoryview in SSLSocket.sendall() (#3384) https://github.com/python/cpython/commit/888bbdc192ec4db888a294ef758cf5510442dc9a -- nosy: +chris

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-07 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch pull_requests: +3431 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2017-09-06 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +3392 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2016-09-15 Thread Christian Heimes
Changes by Christian Heimes : -- components: +SSL stage: -> needs patch type: -> behavior versions: +Python 3.7 ___ Python tracker ___ _

[issue27340] bytes-like objects with socket.sendall(), SSL, and http.client

2016-06-16 Thread Martin Panter
New submission from Martin Panter: According to the documentation, HTTPSConnection.request() should accept arbitrary bytes-like objects, but this is not the case. Currently (since Issue 23756), a “bytes-like object” is defined to be anything that works with Python’s buffer API, as long as it i