summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/2.5.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-08-15 15:15:39 (GMT)
committerR David Murray <rdmurray@bitdance.com>2012-08-15 15:15:39 (GMT)
commit5618aaaafeb18e49cb80ce28c63407db48d12c4b (patch)
tree554b053d682f4aae066447cb953e74c2ebc93e30 /Doc/whatsnew/2.5.rst
parent2d44ceeada8840185217c7de826622d8372ceb00 (diff)
downloadcpython-5618aaaafeb18e49cb80ce28c63407db48d12c4b.zip
cpython-5618aaaafeb18e49cb80ce28c63407db48d12c4b.tar.gz
cpython-5618aaaafeb18e49cb80ce28c63407db48d12c4b.tar.bz2
#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.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/whatsnew/2.5.rst b/Doc/whatsnew/2.5.rst
index ff599c8..5033024 100644
--- a/Doc/whatsnew/2.5.rst
+++ b/Doc/whatsnew/2.5.rst
@@ -1338,9 +1338,12 @@ 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
+ :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