Skip to content

Commit 842c074

Browse files
committed
Issue #24729: Correct reference to open function.
1 parent d8de44b commit 842c074

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Doc/tutorial/inputoutput.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ omitted.
248248

249249
Normally, files are opened in :dfn:`text mode`, that means, you read and write
250250
strings from and to the file, which are encoded in a specific encoding. If
251-
encoding is not specified the default is platform dependent (see :func:`~functions.open`).
252-
``'b'`` appended to the mode opens the file in
251+
encoding is not specified, the default is platform dependent (see
252+
:func:`open`). ``'b'`` appended to the mode opens the file in
253253
:dfn:`binary mode`: now the data is read and written in the form of bytes
254254
objects. This mode should be used for all files that don't contain text.
255255

Misc/NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ C API
396396
Documentation
397397
-------------
398398

399+
- Issue #24729: Correct IO tutorial to match implementation regarding
400+
encoding parameter to open function.
401+
399402
- Issue #24351: Clarify what is meant by "identifier" in the context of
400403
string.Template instances.
401404

0 commit comments

Comments
 (0)