[Python-3000] Reversing through text files with the new IO library

Daniel Stutzbach agthorr at barsoom.org
Tue Mar 13 17:02:22 CET 2007


On 3/12/07, Mark Russell <mark.russell at zen.co.uk> wrote:
> Yes, I suspect that BufferedReader needs some kind of readuntil()
> method, so that (at least for sane encodings like utf-8) each line is
> read via a single readuntil() followed by a decode() call for the
> entire line.

+1

.readuntil() would also be incredibly useful for writing network
protocol code when the protocol isn't line-based.

-- 
Daniel Stutzbach, Ph.D.             President, Stutzbach Enterprises LLC


More information about the Python-3000 mailing list