commit | 789a1613a08d6d6891a40ca1800eaba217eea6bf | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat May 10 22:33:55 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat May 10 22:33:55 1997 +0000 |
tree | e99793dc64d5f5d88f0643c13543b209effe06b3 | |
parent | 6263d5451cd874edc05ef87c9d978a3190e65b28 [diff] |
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().)