Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32251>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to