From: Pablo Galindo Date: Fri, 10 Nov 2017 23:05:12 +0000 (+0000) Subject: bpo-31824: Document default value of 'errors' parameters (GH-4328) X-Git-Tag: v3.7.0a3~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e184cfd7bf8bcfd160e3b611d4351ca3ce52d9e2;p=python bpo-31824: Document default value of 'errors' parameters (GH-4328) --- diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index b9c1868d59..6e249ecf2b 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