[Python-checkins] CVS: python/dist/src/Doc/lib libstdtypes.tex,1.68,1.69
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 21 Sep 2001 21:34:50 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv28468/lib
Modified Files:
libstdtypes.tex
Log Message:
Note that files are iterable; describe what the iterator returns.
This closes SF bug #463738.
Index: libstdtypes.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libstdtypes.tex,v
retrieving revision 1.68
retrieving revision 1.69
diff -C2 -d -r1.68 -r1.69
*** libstdtypes.tex 2001/08/28 14:56:05 1.68
--- libstdtypes.tex 2001/09/22 04:34:48 1.69
***************
*** 1320,1323 ****
--- 1320,1328 ----
+ Files support the iterator protocol. Each iteration returns the same
+ result as \code{\var{file}.readline()}, and iteration ends when the
+ \method{readline()} method returns an empty string.
+
+
File objects also offer a number of other interesting attributes.
These are not required for file-like objects, but should be