diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-08-15 10:43:58 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-08-15 10:43:58 -0400 |
commit | 9265de0728bbd443296275636f745b3fd932a73e (patch) | |
tree | 721f6a0e40736c671448ba2c5e488043395bd74c /Doc/whatsnew/2.5.rst | |
parent | 595ad52ad8e6118c93ecb6aa5b45f9cc215e3098 (diff) | |
download | cpython-9265de0728bbd443296275636f745b3fd932a73e.tar.gz |
#15543: glossary entry for and 'universal newlines', and links to it.
Patch by Chris Jerdonek.
Diffstat (limited to 'Doc/whatsnew/2.5.rst')
-rw-r--r-- | Doc/whatsnew/2.5.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst index ff599c8d8a..afe0f5e5ef 100644 --- a/Doc/whatsnew/2.5.rst +++ b/Doc/whatsnew/2.5.rst @@ -1338,10 +1338,14 @@ complete list of changes, or look through the SVN logs for all the details. .. XXX need to provide some more detail here + .. index:: + single: universal newlines; What's new + * The :mod:`fileinput` module was made more flexible. Unicode filenames are now supported, and a *mode* parameter that defaults to ``"r"`` was added to the - :func:`input` function to allow opening files in binary or universal-newline - mode. Another new parameter, *openhook*, lets you use a function other than + :func:`input` function to allow opening files in binary or + :term:`universal newlines` mode. + Another new parameter, *openhook*, lets you use a function other than :func:`open` to open the input files. Once you're iterating over the set of files, the :class:`FileInput` object's new :meth:`fileno` returns the file descriptor for the currently opened file. (Contributed by Georg Brandl.) |