From: Alex Kautz Date: Tue, 20 May 2025 18:18:58 +0000 (-0400) Subject: gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase... X-Git-Tag: v3.15.0a1~1622 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=36eb711d2f26849214774a017fe8c8a5be3eec30;p=thirdparty%2FPython%2Fcpython.git 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 --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 3aa2f35f05eb..08c76da3d8c0 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -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()