[issue32052] Provide access to buffer of asyncio.StreamReader
Andrew Svetlov
report at bugs.python.org
Sun Jun 2 07:09:41 EDT 2019
Andrew Svetlov <andrew.svetlov at gmail.com> added the comment:
Closing.
Brief:
1. Access to an internal buffer is not an option.
2. Pushing data back to stream after fetching is not an option too: it kills almost any possible optimization and makes code overcomplicated. aiohttp used to have "unread_data()" API but we deprecated it and going to remove the method entirely. A wrapper around the stream with puback functionality is an option though unless it doesn't touch underlying stream implementation.
3. Extending a set of reader operations is a good idea, please make a separate issue with a concrete proposal if needed.
----------
resolution: -> fixed
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32052>
_______________________________________
More information about the Python-bugs-list
mailing list