Yury Selivanov <yseliva...@gmail.com> added the comment: > Do you think it's possible to fold BufferedProtocol into Protocol?
It would be a backwards incompatible change :( Coincidentally, there might be protocols that already implement 'get_buffer()' and 'buffer_updated()' methods that do something completely different. > This would allow StreamReader to implement readinto(). We can easily refactor StreamReader to use 'BufferedProtocol'. Methods like 'readexactly()' would benefit from that. ---------- _______________________________________ 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