diff options
author | Fred Drake <fdrake@acm.org> | 2002-05-06 16:05:01 +0000 |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-05-06 16:05:01 +0000 |
commit | 23ed903be0ebe5dcbb542181ec86543db38c4e55 (patch) | |
tree | 3d634ce33a0522a07916204e77344a156f1d215f | |
parent | 6e5d1a26765a2822dbe2a9677c85f59b876a4f75 (diff) | |
download | cpython-23ed903be0ebe5dcbb542181ec86543db38c4e55.tar.gz |
Add a note explaining the interaction between unbuffered input and
xreadlines.xreadlines().
This closes SF patch #552804.
-rw-r--r-- | Doc/lib/libxreadlines.tex | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/lib/libxreadlines.tex b/Doc/lib/libxreadlines.tex index d824fc3e8c..1b8a341c2c 100644 --- a/Doc/lib/libxreadlines.tex +++ b/Doc/lib/libxreadlines.tex @@ -38,7 +38,10 @@ 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. \strong{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 |