Staging
v0.8.1
https://github.com/python/cpython
Revision 789a1613a08d6d6891a40ca1800eaba217eea6bf authored by Guido van Rossum on 10 May 1997, 22:33:55 UTC, committed by Guido van Rossum on 10 May 1997, 22:33:55 UTC
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().)
1 parent 6263d54
Raw File
Tip revision: 789a1613a08d6d6891a40ca1800eaba217eea6bf authored by Guido van Rossum on 10 May 1997, 22:33:55 UTC
Add optional 'sizehint' argument to readlines(). After approximately
Tip revision: 789a161
errno_unix.h

#define ENOTDIR		(-120)
#define EACCES		(-54)
#define EEXIST		(-48)
#define EBUSY		(-47)
#define EROFS		(-44)
#define ENOENT		(-43)
#define ENFILE		(-42)
#define	EIO			(-36)
#define ENOSPC		(-34)

#define ESRCH		3
#define EINTR		4
#define EBADF		9
#define ENODEV		19
#define EINVAL		22
#define EMFILE		24

back to top