summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-23 04:06:05 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-23 04:06:05 (GMT)
commit2c9aa5ea8d13de7372c8c8587e96479223ea420d (patch)
treee3ab72cc929aff0178995f45de321404ed0984aa /Doc/lib
parentd31db7e939db2f291eda86fedc64e8f4c51bb47a (diff)
downloadcpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.zip
cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.tar.gz
cpython-2c9aa5ea8d13de7372c8c8587e96479223ea420d.tar.bz2
Generalize file.writelines() to allow iterable objects.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libstdtypes.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index a79e142..916a1cf 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -1312,8 +1312,10 @@ Files have the following methods:
the \method{flush()} or \method{close()} method is called.
\end{methoddesc}
-\begin{methoddesc}[file]{writelines}{list}
- Write a list of strings to the file. There is no return value.
+\begin{methoddesc}[file]{writelines}{sequence}
+ Write a sequence of strings to the file. The sequence can be any
+ iterable object producing strings, typically a list of strings.
+ There is no return value.
(The name is intended to match \method{readlines()};
\method{writelines()} does not add line separators.)
\end{methoddesc}