]> granicus.if.org Git - python/commit
Add optional 'sizehint' argument to readlines(). After approximately
authorGuido van Rossum <guido@python.org>
Sat, 10 May 1997 22:33:55 +0000 (22:33 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 10 May 1997 22:33:55 +0000 (22:33 +0000)
commit789a1613a08d6d6891a40ca1800eaba217eea6bf
treee99793dc64d5f5d88f0643c13543b209effe06b3
parent6263d5451cd874edc05ef87c9d978a3190e65b28
Add optional 'sizehint' argument to readlines().  After approximately
this many bytes have been read, readlines stops.  Because of
buffering, the amount of bytes read is usually at least 8K more than
the hint.

Also changed read() and readline() to use PyArg_ParseTuple().

(Note that the *previous* checkin also fixed error handling and
narrowed the range of thread unblocking for all methods using
fread().)
Objects/fileobject.c