This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nikratio
Recipients nikratio, pitrou
Date 2014-03-27.03:35:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395891346.71.0.0194622722788.issue20578@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-27 03:35:47nikratiosetrecipients: + nikratio, pitrou
2014-03-27 03:35:46nikratiosetmessageid: <1395891346.71.0.0194622722788.issue20578@psf.upfronthosting.co.za>
2014-03-27 03:35:46nikratiolinkissue20578 messages
2014-03-27 03:35:46nikratiocreate