From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 20 May 2025 19:28:09 +0000 (+0200) Subject: [3.13] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOB... X-Git-Tag: v3.13.4~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7df67492197f0b9a3903f787c0738e29d8ff0c57;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372) (#134375) 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 36eb711d2f26849214774a017fe8c8a5be3eec30) Co-authored-by: Alex Kautz --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index cca9b8bf869f..7f48abd75e2b 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -879,9 +879,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()