https://github.com/python/cpython/commit/36eb711d2f26849214774a017fe8c8a5be3eec30
commit: 36eb711d2f26849214774a017fe8c8a5be3eec30
branch: main
author: Alex Kautz <[email protected]>
committer: gpshead <[email protected]>
date: 2025-05-20T18:18:58Z
summary:

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

files:
M Doc/library/io.rst

diff --git a/Doc/library/io.rst b/Doc/library/io.rst
index 3aa2f35f05eba0..08c76da3d8c00a 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()
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to