summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-22 01:56:51 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-22 01:56:51 (GMT)
commit82f93c693dda388e9026dafd8a5636843df82e55 (patch)
tree24c5e67d6ebc184888ae723a2c77148f1f84a0d5 /Doc
parentf8b71c598431667835b76ad4e78d49e9936047f0 (diff)
downloadcpython-82f93c693dda388e9026dafd8a5636843df82e55.zip
cpython-82f93c693dda388e9026dafd8a5636843df82e55.tar.gz
cpython-82f93c693dda388e9026dafd8a5636843df82e55.tar.bz2
Only document <file>.xreadlines() once; added version annotation.
This closes SF bug #417943.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libstdtypes.tex11
1 files changed, 4 insertions, 7 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index fc17785..62435fd 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -1192,7 +1192,10 @@ Files have the following methods:
\end{methoddesc}
\begin{methoddesc}[file]{xreadlines}{}
- Equivalent to \function{xreadlines.xreadlines(file)}.\refstmodindex{xreadlines}
+ Equivalent to
+ \function{xreadlines.xreadlines(\var{file})}.\refstmodindex{xreadlines}
+ (See the \refmodule{xreadlines} module for more information.)
+ \versionadded{2.1}
\end{methoddesc}
\begin{methoddesc}[file]{seek}{offset\optional{, whence}}
@@ -1233,12 +1236,6 @@ Files have the following methods:
\method{writelines()} does not add line separators.)
\end{methoddesc}
-\begin{methoddesc}[file]{xreadlines}{}
- Equivalent to
- \function{xreadlines.xreadlines(\var{file})}.\refstmodindex{xreadlines}
- (See the \refmodule{xreadlines} module for more information.)
-\end{methoddesc}
-
File objects also offer a number of other interesting attributes.
These are not required for file-like objects, but should be