summaryrefslogtreecommitdiff
path: root/docs/ref/files/file.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/files/file.txt')
-rw-r--r--docs/ref/files/file.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt
index 6874936eab..57f8e9eab3 100644
--- a/docs/ref/files/file.txt
+++ b/docs/ref/files/file.txt
@@ -53,6 +53,15 @@ The ``File`` Class
Iterate over the file yielding one line at a time.
+ .. versionchanged:: 1.8
+
+ ``File`` now uses `universal newlines`_. The following are
+ recognized as ending a line: the Unix end-of-line convention
+ ``'\n'``, the Windows convention ``'\r\n'``, and the old Macintosh
+ convention ``'\r'``.
+
+ .. _universal newlines: http://www.python.org/dev/peps/pep-0278
+
.. method:: chunks([chunk_size=None])
Iterate over the file yielding "chunks" of a given size. ``chunk_size``