[issue20578] BufferedIOBase.readinto1 is missing
Nikolaus Rath
report at bugs.python.org
Thu Mar 27 04:35:46 CET 2014
Nikolaus Rath added the comment:
I have attached a patch that adds readinto1() to BufferedReader and BufferedRWPair.
An example use case for this method is receiving a large stream over a protocol like HTTP. You want to use a buffered reader so you can efficiently parse the header, but after that you want to stream the data as it comes in, i.e. you want to use read1 or, for improved performance, readinto1.
Feedback is welcome.
----------
keywords: +patch
Added file: http://bugs.python.org/file34632/issue20578.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20578>
_______________________________________
More information about the Python-bugs-list
mailing list