mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Merge #15694: reflow paragraph.
This commit is contained in:
commit
ed7fb9c74d
1 changed files with 2 additions and 3 deletions
|
@ -914,9 +914,8 @@ are always available. They are listed here in alphabetical order.
|
||||||
The ``'x'`` mode was added.
|
The ``'x'`` mode was added.
|
||||||
|
|
||||||
The type of :term:`file object` returned by the :func:`open` function
|
The type of :term:`file object` returned by the :func:`open` function
|
||||||
depends on the
|
depends on the mode. When :func:`open` is used to open a file in a text
|
||||||
mode. When :func:`open` is used to open a file in a text mode (``'w'``,
|
mode (``'w'``, ``'r'``, ``'wt'``, ``'rt'``, etc.), it returns a subclass of
|
||||||
``'r'``, ``'wt'``, ``'rt'``, etc.), it returns a subclass of
|
|
||||||
:class:`io.TextIOBase` (specifically :class:`io.TextIOWrapper`). When used
|
:class:`io.TextIOBase` (specifically :class:`io.TextIOWrapper`). When used
|
||||||
to open a file in a binary mode with buffering, the returned class is a
|
to open a file in a binary mode with buffering, the returned class is a
|
||||||
subclass of :class:`io.BufferedIOBase`. The exact class varies: in read
|
subclass of :class:`io.BufferedIOBase`. The exact class varies: in read
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue