[issue32251] Add asyncio.BufferedProtocol
Antoine Pitrou
report at bugs.python.org
Fri Dec 8 12:31:28 EST 2017
Antoine Pitrou <pitrou at free.fr> added the comment:
Do you think it's possible to fold BufferedProtocol into Protocol?
i.e., either `get_buffer()` returns None (the default) and `data_received()` is called with a bytes object, or `get_buffer()` returns a writable buffer and `buffer_updated()` is called with the number of bytes received into the buffer.
This would allow StreamReader to implement readinto().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32251>
_______________________________________
More information about the Python-bugs-list
mailing list