]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141627: Fix BufferedRandom inheritance documentation (GH-141629)
authorMohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Tue, 2 Jun 2026 18:06:39 +0000 (23:06 +0500)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 18:06:39 +0000 (18:06 +0000)
BufferedRandom does not inherit from BufferedReader and BufferedWriter
in the C implementation.

Doc/library/io.rst

index 494e57fe1c047430b54e82d1c7bef0f052522e5c..8c0eed592dd49ed137ed745f5a7bc83e1b55e6af 100644 (file)
@@ -824,9 +824,9 @@ than raw I/O does.
 
 .. class:: BufferedRandom(raw, buffer_size=DEFAULT_BUFFER_SIZE)
 
-   A buffered binary stream providing higher-level access to a seekable
-   :class:`RawIOBase` raw binary stream.  It inherits from :class:`BufferedReader`
-   and :class:`BufferedWriter`.
+   A buffered binary stream implementing :class:`BufferedIOBase` interfaces
+   providing higher-level access to a seekable :class:`RawIOBase` raw binary
+   stream.
 
    The constructor creates a reader and writer for a seekable raw stream, given
    in the first argument.  If the *buffer_size* is omitted it defaults to