mirror of
https://github.com/python/cpython.git
synced 2025-09-29 11:45:57 +00:00
bpo-31824: Document default value of 'errors' parameters (GH-4328)
(cherry picked from commit e184cfd7bf
)
This commit is contained in:
parent
7997fa2e21
commit
7abbddd88d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue