[Python-3000] Reversing through text files with the new IO library (original) (raw)
Daniel Stutzbach agthorr at barsoom.org
Tue Mar 13 17:02:22 CET 2007
- Previous message: [Python-3000] Reversing through text files with the new IO library
- Next message: [Python-3000] Moving files around
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Reversing through text files with the new IO library
- Next message: [Python-3000] Moving files around
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]