mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[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 36eb711d2f
)
Co-authored-by: Alex Kautz <alex@takemobi.com>
This commit is contained in:
parent
6f1f871483
commit
899ce7d390
1 changed files with 4 additions and 3 deletions
|
@ -894,9 +894,10 @@ Text I/O
|
|||
|
||||
.. attribute:: buffer
|
||||
|
||||
The underlying binary buffer (a :class:`BufferedIOBase` instance) that
|
||||
:class:`TextIOBase` deals with. This is not part of the
|
||||
:class:`TextIOBase` API and may not exist in some implementations.
|
||||
The underlying binary buffer (a :class:`BufferedIOBase`
|
||||
or :class:`RawIOBase` instance) that :class:`TextIOBase` deals with.
|
||||
This is not part of the :class:`TextIOBase` API and may not exist
|
||||
in some implementations.
|
||||
|
||||
.. method:: detach()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue