John Machin wrote: > Sigh indeed. If you need to read it a character at a time to parse it, > the design is f***ed.
There is always the potential to do 2k buffered reads and once in memory pick the contents apart character-wise. I assume something similar would happen for tokenising XML and HTML which would presumably often 'read until "<"'. -- http://mail.python.org/mailman/listinfo/python-list