Author pitrou
Recipients pitrou, vstinner
Date 2011-05-25.12:19:46
SpamBayes Score 0.000181449
Marked as misclassified No
Message-id <1306325983.3580.1.camel@localhost.localdomain>
In-reply-to <1306325640.48.0.610014463103.issue12175@psf.upfronthosting.co.za>
Content
> BufferedReader.read() calls FileIO.read() until FileIO.read() returns
> an empty byte string. Why not calling FileIO.read() only once?

BufferedReader doesn't call FileIO.read, it calls <rawio>.read().
The latter can be e.g. a socket and call recv(). If you want to read
till the end of stream, you have to repeat until recv() returns the
empty string.
History
Date User Action Args
2011-05-25 12:19:47pitrousetrecipients: + pitrou, vstinner
2011-05-25 12:19:47pitroulinkissue12175 messages
2011-05-25 12:19:47pitroucreate