Commit 8083c176 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 6e91c6a3
......@@ -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}
......
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment