Message136842
| Author |
pitrou |
| Recipients |
pitrou, vstinner |
| Date |
2011年05月25日.12:19:46 |
| SpamBayes Score |
0.00018144924 |
| 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:47 | pitrou | set | recipients:
+ pitrou, vstinner |
| 2011年05月25日 12:19:47 | pitrou | link | issue12175 messages |
| 2011年05月25日 12:19:47 | pitrou | create |
|