[issue13464] HTTPResponse is missing an implementation of readinto

Jon Kuhn report at bugs.python.org
Sun Dec 4 17:54:49 CET 2011


Jon Kuhn <jonkuhn at gmail.com> added the comment:

Thanks for the comments.  Attached is an updated patch.

In the RawIOBase docs it says "If the object is in non-blocking mode and no bytes are available, None is returned."  So I wasn't sure if that meant any time no bytes were available or just when no bytes are available and EOF has not been reached.  -- I updated it to return 0 instead of None.

I simplified _read_chunked() and renamed it to _readall_chunked() since that is all it does.  

I added the versionadded tag specifying that it was added in 3.3 since the patch is for the default branch.

----------
Added file: http://bugs.python.org/file23850/issue13464_r1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13464>
_______________________________________


More information about the Python-bugs-list mailing list