summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-07-29 18:29:47 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2015-07-29 18:29:47 (GMT)
commitada5578f95bcd4b402e0e3111bb65cb70ee0daae (patch)
tree17c0deef71df49cc9a03121869f17d7ecfa995bb /Doc/tutorial
parent8ed48182896729baf063e8bae349fc7f40917f08 (diff)
parent0598da39ec6ac40f9bebfe3495f47a0e350141ec (diff)
downloadcpython-ada5578f95bcd4b402e0e3111bb65cb70ee0daae.zip
cpython-ada5578f95bcd4b402e0e3111bb65cb70ee0daae.tar.gz
cpython-ada5578f95bcd4b402e0e3111bb65cb70ee0daae.tar.bz2
Merge with 3.5 for Issue #24729
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/inputoutput.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
index 6f9c99d..c157f22 100644
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -247,8 +247,9 @@ writing. The *mode* argument is optional; ``'r'`` will be assumed if it's
omitted.
Normally, files are opened in :dfn:`text mode`, that means, you read and write
-strings from and to the file, which are encoded in a specific encoding (the
-default being UTF-8). ``'b'`` appended to the mode opens the file in
+strings from and to the file, which are encoded in a specific encoding. If
+encoding is not specified, the default is platform dependent (see
+:func:`open`). ``'b'`` appended to the mode opens the file in
:dfn:`binary mode`: now the data is read and written in the form of bytes
objects. This mode should be used for all files that don't contain text.
@@ -437,4 +438,3 @@ The reference for the :mod:`json` module contains an explanation of this.
written in other languages. It is also insecure by default:
deserializing pickle data coming from an untrusted source can execute
arbitrary code, if the data was crafted by a skilled attacker.
-