mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Add a note explaining the interaction between unbuffered input and
xreadlines.xreadlines(). This closes SF patch #552804.
This commit is contained in:
parent
0b5c11252d
commit
d05c74f42d
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue