[Pythonmac-SIG] Re: MacPython and line-endings
Guido van Rossum
guido@python.org
Fri, 05 Oct 2001 17:18:15 -0400
> A wild idea (and basically why I added Guido to the cc list): file
> objects could make our life a lot simpler if there was a call
> file.readtoterminator(termchars, max), where termchars is a string, which
> would read data up to and including a character in termchars (or until
> 'max' bytes have been read). It would have to be implemented as a
> getc() loop in C, but as we're going to do that looping anyway at some
> point we might as well do it in C and not in Python...
Hm, that makes sense. I'm missing some context (didn't see Chris
Barker's msg) but feel free to propose a patch for such a method.
--Guido van Rossum (home page: http://www.python.org/~guido/)