[Python-checkins] cpython (3.4): Issue #24729: Update tutorial to match implementation.
jason.coombs
python-checkins at python.org
Wed Jul 29 20:30:05 CEST 2015
https://hg.python.org/cpython/rev/c9e78d91d588
changeset: 97131:c9e78d91d588
branch: 3.4
parent: 97124:3caa68f55e3e
user: Alessandro Cucci
date: Tue Jul 28 21:00:10 2015 +0200
summary:
Issue #24729: Update tutorial to match implementation.
files:
Doc/tutorial/inputoutput.rst | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -247,8 +247,9 @@
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 @@
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.
-
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list