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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20578>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to