[Python-Dev] sizehint in readlines

Guido van Rossum guido@beopen.com
Tue, 19 Sep 2000 09:28:42 -0500


> I've added support for the sizehint parameter in all places where it
> was missing and the documentation referred to the file objects section
> (socket, StringIO, cStringIO). The only remaining place with a
> readlines function without sizehint is in multifile.py. I'll observe
> that the documentation of this module is quite confused: it mentions a
> str parameter for readline and readlines.

That's one for Fred...

> Should multifile.MultiFile.readlines also support the sizehint? (note
> that read() deliberately does not support a size argument).

I don't care about it here -- that API is clearly substandard.

--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)