summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlessandro Cucci <none@none>2015-07-28 19:00:10 (GMT)
committerAlessandro Cucci <none@none>2015-07-28 19:00:10 (GMT)
commitd8de44b6b3b36ec76154e7107891106451d6e7de (patch)
tree3202ca9b3692f2c0bc5cd48582deb81dc3c57f4b /Doc
parent111803c0389ff5c68da377dd3c27e30a68c3e2f0 (diff)
downloadcpython-d8de44b6b3b36ec76154e7107891106451d6e7de.zip
cpython-d8de44b6b3b36ec76154e7107891106451d6e7de.tar.gz
cpython-d8de44b6b3b36ec76154e7107891106451d6e7de.tar.bz2
Issue #24729: Update tutorial to match implementation.
Diffstat (limited to 'Doc')
-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..29dc948 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:`~functions.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.
-