mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Only document <file>.xreadlines() once; added version annotation.
This closes SF bug #417943.
This commit is contained in:
parent
f8b71c5984
commit
82f93c693d
1 changed files with 4 additions and 7 deletions
|
|
@ -1192,7 +1192,10 @@ Files have the following methods:
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[file]{xreadlines}{}
|
\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}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}[file]{seek}{offset\optional{, whence}}
|
\begin{methoddesc}[file]{seek}{offset\optional{, whence}}
|
||||||
|
|
@ -1233,12 +1236,6 @@ Files have the following methods:
|
||||||
\method{writelines()} does not add line separators.)
|
\method{writelines()} does not add line separators.)
|
||||||
\end{methoddesc}
|
\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.
|
File objects also offer a number of other interesting attributes.
|
||||||
These are not required for file-like objects, but should be
|
These are not required for file-like objects, but should be
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue