CVS: 'python/dist/src/Objects fileobject.c'
Guido van Rossum
guido@monty.CNRI.Reston.Va.US
Sat, 10 May 1997 18:33:57 -0400
Update of /projects/cvsroot/python/dist/src/Objects
In directory monty:/usr/people/guido/python/src/Objects
Modified Files:
fileobject.c
Log Message:
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().)
--Guido van Rossum (home page: http://www.python.org/~guido/)