[Python-checkins] cpython (3.4): Issue #24729: Correct reference to open function.

jason.coombs python-checkins at python.org
Wed Jul 29 20:30:05 CEST 2015


https://hg.python.org/cpython/rev/20084be60761
changeset:   97132:20084be60761
branch:      3.4
user:        Jason R. Coombs <jaraco at jaraco.com>
date:        Wed Jul 29 14:04:36 2015 -0400
summary:
  Issue #24729: Correct reference to open function.

files:
  Doc/tutorial/inputoutput.rst |  4 ++--
  Misc/NEWS                    |  3 +++
  2 files changed, 5 insertions(+), 2 deletions(-)


diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -248,8 +248,8 @@
 
 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. If
-encoding is not specified the default is platform dependent (see :func:`~functions.open`).
-``'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
 objects.  This mode should be used for all files that don't contain text.
 
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -396,6 +396,9 @@
 Documentation
 -------------
 
+- 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
   string.Template instances.
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list