Add a note about rounding up of readlines()' sizehint to 8K.

This commit is contained in:
Guido van Rossum 1998-02-08 22:51:09 +00:00
parent 6e91c6a344
commit 8083c176a3
2 changed files with 4 additions and 2 deletions

View File

@ -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}

View File

@ -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}