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