Commit dcf841b7 authored by Jason R. Coombs's avatar Jason R. Coombs

Merge

parents bd4dd547 842c0741
...@@ -247,8 +247,9 @@ writing. The *mode* argument is optional; ``'r'`` will be assumed if it's ...@@ -247,8 +247,9 @@ writing. The *mode* argument is optional; ``'r'`` will be assumed if it's
omitted. omitted.
Normally, files are opened in :dfn:`text mode`, that means, you read and write 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 strings from and to the file, which are encoded in a specific encoding. If
default being UTF-8). ``'b'`` appended to the mode opens the file in 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 :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. 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. ...@@ -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: written in other languages. It is also insecure by default:
deserializing pickle data coming from an untrusted source can execute deserializing pickle data coming from an untrusted source can execute
arbitrary code, if the data was crafted by a skilled attacker. arbitrary code, if the data was crafted by a skilled attacker.
...@@ -398,6 +398,9 @@ Documentation ...@@ -398,6 +398,9 @@ Documentation
- Issue #23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan. - Issue #23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan.
- Issue #24729: Correct IO tutorial to match implementation regarding
encoding parameter to open function.
- Issue #24351: Clarify what is meant by "identifier" in the context of - Issue #24351: Clarify what is meant by "identifier" in the context of
string.Template instances. string.Template instances.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment