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 pitrou
Recipients amaury.forgeotdarc, ocean-city, pitrou, zmedico
Date 2009-02-27.10:28:01
SpamBayes Score 0.012004719
Marked as misclassified No
Message-id <1235730483.4.0.789517515985.issue5380@psf.upfronthosting.co.za>
In-reply-to
Content
Interesting. The reason the io module calls read() more than once is
that BufferedReader is a generic wrapper which can be used on different
kinds of file-like objects, including sockets.

I'm not sure how to satisfy that use-case without compromising normal
error-handling behaviour. Perhaps the FileIO object, when receiving an
errno=5 on read(), should check for S_IFIFO on the fstat() result and
then return an empty string instead?
History
Date User Action Args
2009-02-27 10:28:03pitrousetrecipients: + pitrou, amaury.forgeotdarc, ocean-city, zmedico
2009-02-27 10:28:03pitrousetmessageid: <1235730483.4.0.789517515985.issue5380@psf.upfronthosting.co.za>
2009-02-27 10:28:01pitroulinkissue5380 messages
2009-02-27 10:28:01pitroucreate