[issue32052] Provide access to buffer of asyncio.StreamReader
Andrew Svetlov
report at bugs.python.org
Sat Oct 13 06:21:57 EDT 2018
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Exposing internal buffer means committing on a new API contract forever.
I feel a need for reacher read*() API but pretty sure that making internal buffer public is a bad idea. With BufferedProtocol it could be even worse: SLAB allocators can spit a buffer into several separate chunks.
`str.startswith()` supports a tuple of separators, maybe we can do the same for streaming API
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32052>
_______________________________________
More information about the Python-bugs-list
mailing list