diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-04-15 16:09:29 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-04-15 16:09:29 (GMT) |
commit | acfc454c10ab2fe5dafd4c90a15eaae8cef214c2 (patch) | |
tree | 39d49b9572ea67b8ea2d0ef08ec6513d1f267ac5 /Doc/library | |
parent | 7d55a40b9a2c386d1389fab5b3fe48960ced919a (diff) | |
parent | ed3cd7e445e7be413d1b454471454f7ff9f21f1f (diff) | |
download | cpython-acfc454c10ab2fe5dafd4c90a15eaae8cef214c2.zip cpython-acfc454c10ab2fe5dafd4c90a15eaae8cef214c2.tar.gz cpython-acfc454c10ab2fe5dafd4c90a15eaae8cef214c2.tar.bz2 |
#13510: merge with 3.3.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/io.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/io.rst b/Doc/library/io.rst index a8d5fe3..8f3964f 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -298,6 +298,9 @@ I/O Base Classes to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds *hint*. + Note that it's already possible to iterate on file objects using ``for + line in file: ...`` without calling ``file.readlines()``. + .. method:: seek(offset, whence=SEEK_SET) Change the stream position to the given byte *offset*. *offset* is |