]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a note about rounding up of readlines()' sizehint to 8K.
authorGuido van Rossum <guido@python.org>
Sun, 8 Feb 1998 22:51:09 +0000 (22:51 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 8 Feb 1998 22:51:09 +0000 (22:51 +0000)
Doc/lib/libtypes.tex
Doc/libtypes.tex

index 6cb66f9fadc32fecf09c723c66cbbbfca4c45ecc..dfe1ecb0fcc5b529a95cc9723e4a44696702ef21 100644 (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}
index 6cb66f9fadc32fecf09c723c66cbbbfca4c45ecc..dfe1ecb0fcc5b529a95cc9723e4a44696702ef21 100644 (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}