Serhiy Storchaka added the comment:

After adding read1() and peek() what stop us from inheriting HTTPResponse from 
BufferedIOBase?

I suggest split _read1_or_peek_chunked() by two parts. First part calculates n 
bounded by chunk_left (it can read the next chunk size and close a connection 
if needed). Perhaps it can be reused in _readall_chunked() and 
_readinto_chunked(() too. Second part which is  controlled by boolean parameter 
should be moved out in read1() and peek().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19009>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to