Author martin.panter
Recipients benjamin.peterson, martin.panter, pitrou, serhiy.storchaka, stutzbach
Date 2016-03-19.06:32:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Okay here is a patch implementing read1(-1) in BufferedReader and BytesIO (my original proposal). Other changes:

* Changed read1(size=-1) → read1([size]), because BufferedReader and BytesIO do not accept keyword arguments (see also Issue 23738)
* Defined size=-1 to mean an arbitrary non-zero size
* Change BufferedReader.read1() to return a buffer of data
* Change BytesIO.read1() to read until EOF
* Add tests to complement existing read1(size) tests for BufferedReader (includes BufferedRandom), BufferedRWPair, and BytesIO
Date User Action Args
2016-03-19 06:32:07martin.pantersetrecipients: + martin.panter, pitrou, benjamin.peterson, stutzbach, serhiy.storchaka
2016-03-19 06:32:07martin.pantersetmessageid: <>
2016-03-19 06:32:07martin.panterlinkissue23214 messages
2016-03-19 06:32:07martin.pantercreate