[Python-checkins] bpo-31824: Document default value of 'errors' parameters (GH-4328)

Berker Peksag webhook-mailer at python.org
Fri Nov 10 18:14:02 EST 2017


https://github.com/python/cpython/commit/7abbddd88d4debe75b201145b6212afb7d93c457
commit: 7abbddd88d4debe75b201145b6212afb7d93c457
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2017-11-11T02:14:00+03:00
summary:

bpo-31824: Document default value of 'errors' parameters (GH-4328)

(cherry picked from commit e184cfd7bf8bcfd160e3b611d4351ca3ce52d9e2)

files:
M Doc/library/codecs.rst

diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index b9c1868d595..6e249ecf2b1 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -802,7 +802,7 @@ The design is such that one can use the factory functions returned by the
 :func:`lookup` function to construct the instance.
 
 
-.. class:: StreamReaderWriter(stream, Reader, Writer, errors)
+.. class:: StreamReaderWriter(stream, Reader, Writer, errors='strict')
 
    Creates a :class:`StreamReaderWriter` instance. *stream* must be a file-like
    object. *Reader* and *Writer* must be factory functions or classes providing the
@@ -826,7 +826,7 @@ The design is such that one can use the factory functions returned by the
 :func:`lookup` function to construct the instance.
 
 
-.. class:: StreamRecoder(stream, encode, decode, Reader, Writer, errors)
+.. class:: StreamRecoder(stream, encode, decode, Reader, Writer, errors='strict')
 
    Creates a :class:`StreamRecoder` instance which implements a two-way conversion:
    *encode* and *decode* work on the frontend — the data visible to



More information about the Python-checkins mailing list