Skip to content

Commit a7ce8ac

Browse files
[3.14] gh-141627: Fix BufferedRandom inheritance documentation (GH-141629) (GH-150802)
BufferedRandom does not inherit from BufferedReader and BufferedWriter in the C implementation. (cherry picked from commit 551bc2c) Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
1 parent e57d1a0 commit a7ce8ac

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/io.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -829,9 +829,9 @@ than raw I/O does.
829829

830830
.. class:: BufferedRandom(raw, buffer_size=DEFAULT_BUFFER_SIZE)
831831

832-
A buffered binary stream providing higher-level access to a seekable
833-
:class:`RawIOBase` raw binary stream. It inherits from :class:`BufferedReader`
834-
and :class:`BufferedWriter`.
832+
A buffered binary stream implementing :class:`BufferedIOBase` interfaces
833+
providing higher-level access to a seekable :class:`RawIOBase` raw binary
834+
stream.
835835

836836
The constructor creates a reader and writer for a seekable raw stream, given
837837
in the first argument. If the *buffer_size* is omitted it defaults to

0 commit comments

Comments
 (0)