diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-07-29 14:25:58 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-07-29 14:25:58 -0400 |
commit | dcf841b78e7579cdb886cb1a26639b9ee7fbe7b3 (patch) | |
tree | 89fc3e60528e74652be29c43fb75443ab6edd297 /Doc | |
parent | bd4dd54737db2394305745a9cc70981a7ba9eccf (diff) | |
parent | 842c07414e336dce7a9ec74e1b7cedae2f7dd5ad (diff) | |
download | cpython-git-dcf841b78e7579cdb886cb1a26639b9ee7fbe7b3.tar.gz |
Merge
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 6f9c99daf9..c157f22e6c 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. - |