Add a note explaining the interaction between unbuffered input and

xreadlines.xreadlines().
This closes SF patch #552804.
This commit is contained in:
Fred Drake 2002-05-06 16:02:42 +00:00
parent 0b5c11252d
commit d05c74f42d

View file

@ -38,7 +38,9 @@ former case.
\begin{funcdesc}{xreadlines}{fileobj}
Return a new xreadlines object which will iterate over the contents
of \var{fileobj}. \var{fileobj} must have a \method{readlines()}
method that supports the \var{sizehint} parameter.
method that supports the \var{sizehint} parameter. \note{Because
the \method{readlines()} method buffers data, this effectively
ignores the effects of setting the file object as unbuffered.}
\end{funcdesc}
An xreadlines object \var{s} supports the following sequence