Antoine Pitrou <pit...@free.fr> added the comment: 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? ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5380> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com