Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8ff47 commit 038d264Copy full SHA for 038d264
1 file changed
Doc/lib/libstdtypes.tex
@@ -1319,6 +1319,11 @@ \subsubsection{File Objects\obindex{file}
1319
\end{methoddesc}
1320
1321
1322
+Files support the iterator protocol. Each iteration returns the same
1323
+result as \code{\var{file}.readline()}, and iteration ends when the
1324
+\method{readline()} method returns an empty string.
1325
+
1326
1327
File objects also offer a number of other interesting attributes.
1328
These are not required for file-like objects, but should be
1329
implemented if they make sense for the particular object.
0 commit comments