From 8083c176a3e7c31996f06bb209bedd448145e87c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 8 Feb 1998 22:51:09 +0000 Subject: [PATCH] Add a note about rounding up of readlines()' sizehint to 8K. --- Doc/lib/libtypes.tex | 3 ++- Doc/libtypes.tex | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Doc/lib/libtypes.tex b/Doc/lib/libtypes.tex index 6cb66f9fadc..dfe1ecb0fcc 100644 --- a/Doc/lib/libtypes.tex +++ b/Doc/lib/libtypes.tex @@ -737,7 +737,8 @@ descriptors, e.g. module \code{fcntl} or \code{os.read()} and friends. Read until \EOF{} using \code{readline()} and return a list containing the lines thus read. If the optional \var{sizehint} argument is present, instead of reading up to \EOF{}, whole lines totalling - approximately \var{sizehint} bytes are read. + approximately \var{sizehint} bytes (possibly after rounding up to an + internal buffer size) are read. \end{funcdesc} \begin{funcdesc}{seek}{offset\, whence} diff --git a/Doc/libtypes.tex b/Doc/libtypes.tex index 6cb66f9fadc..dfe1ecb0fcc 100644 --- a/Doc/libtypes.tex +++ b/Doc/libtypes.tex @@ -737,7 +737,8 @@ descriptors, e.g. module \code{fcntl} or \code{os.read()} and friends. Read until \EOF{} using \code{readline()} and return a list containing the lines thus read. If the optional \var{sizehint} argument is present, instead of reading up to \EOF{}, whole lines totalling - approximately \var{sizehint} bytes are read. + approximately \var{sizehint} bytes (possibly after rounding up to an + internal buffer size) are read. \end{funcdesc} \begin{funcdesc}{seek}{offset\, whence}