diff options
author | Georg Brandl <georg@python.org> | 2007-09-07 14:15:41 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-07 14:15:41 (GMT) |
commit | 96593ed348078403eb30fd5d2767fc96c17e913a (patch) | |
tree | f1221b6a26fb84fc1159ead1f4064fb7dc59a354 /Doc/library/fileinput.rst | |
parent | 44fa8f650f3a69318afe37874e82c6688f88e311 (diff) | |
download | cpython-96593ed348078403eb30fd5d2767fc96c17e913a.zip cpython-96593ed348078403eb30fd5d2767fc96c17e913a.tar.gz cpython-96593ed348078403eb30fd5d2767fc96c17e913a.tar.bz2 |
Continue going through the language reference, bringing it up-to-date.
In particular, document the new comprehensions and remove mentions of long integers.
Fix a bunch of related things in the lib ref.
Diffstat (limited to 'Doc/library/fileinput.rst')
-rw-r--r-- | Doc/library/fileinput.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/fileinput.rst b/Doc/library/fileinput.rst index ba7e980..fd84139 100644 --- a/Doc/library/fileinput.rst +++ b/Doc/library/fileinput.rst @@ -19,10 +19,10 @@ The typical use is:: This iterates over the lines of all files listed in ``sys.argv[1:]``, defaulting to ``sys.stdin`` if the list is empty. If a filename is ``'-'``, it is also replaced by ``sys.stdin``. To specify an alternative list of filenames, pass it -as the first argument to :func:`input`. A single file name is also allowed. +as the first argument to :func:`.input`. A single file name is also allowed. All files are opened in text mode by default, but you can override this by -specifying the *mode* parameter in the call to :func:`input` or +specifying the *mode* parameter in the call to :func:`.input` or :class:`FileInput()`. If an I/O error occurs during opening or reading a file, :exc:`IOError` is raised. |