Message198142
| Author |
serhiy.storchaka |
| Recipients |
kristjan.jonsson, orsenthil, pitrou, r.david.murray, serhiy.storchaka |
| Date |
2013年09月20日.12:04:52 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1379678693.08.0.49966425873.issue19009@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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(). |
|