8000 [3.14] gh-85045: clarified that the underlying buffer of a TextIOBase… · python/cpython@899ce7d · GitHub
[go: up one dir, main page]

Skip to content

Commit 899ce7d

Browse files
[3.14] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372) (#134374)
gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372) Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase (cherry picked from commit 36eb711) Co-authored-by: Alex Kautz <alex@takemobi.com>
1 parent 6f1f871 commit 899ce7d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Doc/library/io.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,10 @@ Text I/O
894894

895895
.. attribute:: buffer
896896

897-
The underlying binary buffer (a :class:`BufferedIOBase` instance) that
898-
:class:`TextIOBase` deals with. This is not part of the
899-
:class:`TextIOBase` API and may not exist in some implementations.
897+
The underlying binary buffer (a :class:`BufferedIOBase`
898+
or :class:`RawIOBase` instance) that :class:`TextIOBase` deals with.
899+
This is not part of the :class:`TextIOBase` API and may not exist
900+
in some implementations.
900901

901902
.. method:: detach()
902903

0 commit comments

Comments
 (0)
0