Issue #24729: Update tutorial to match implementation.
authorAlessandro Cucci <none@none>
Tue, 28 Jul 2015 19:00:10 +0000 (21:00 +0200)
committerAlessandro Cucci <none@none>
Tue, 28 Jul 2015 19:00:10 +0000 (21:00 +0200)
Doc/tutorial/inputoutput.rst

index 6f9c99daf9bbd87e46f8dda59611b60098b7d733..29dc94863e722f37f0ffdbd71f8c71a9e9f83316 100644 (file)
@@ -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.
-