From: Guido van Rossum Date: Sun, 8 Feb 1998 22:51:09 +0000 (+0000) Subject: Add a note about rounding up of readlines()' sizehint to 8K. X-Git-Tag: v1.5.1~837 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8083c176a3e7c31996f06bb209bedd448145e87c;p=thirdparty%2FPython%2Fcpython.git Add a note about rounding up of readlines()' sizehint to 8K. --- diff --git a/Doc/lib/libtypes.tex b/Doc/lib/libtypes.tex index 6cb66f9fadc3..dfe1ecb0fcc5 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 6cb66f9fadc3..dfe1ecb0fcc5 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}