Documentation
The documentation for io.BufferedRandom states
A buffered binary stream providing higher-level access to a seekable RawIOBase raw binary stream. It inherits from BufferedReader and BufferedWriter.
(emphasis mine)
Except when runing cpython,
Python3.14.0rc3 (main, Sep182025, 19:47:22) [Clang20.1.4 ] onlinuxType"help", "copyright", "credits"or"license"formoreinformation.
>>>fromioimportBufferedRandom, BufferedReader>>>issubclass(BufferedRandom, BufferedReader)
False>>>BufferedRandom.mro()
[<class'_io.BufferedRandom'>, <class'_io._BufferedIOBase'>, <class'_io._IOBase'>, <class'object'>]
It seems that BufferedRandom does not inherit from either BufferedReader or BufferedWriter
Linked PRs
Documentation
The documentation for
io.BufferedRandomstates(emphasis mine)
Except when runing cpython,
It seems that
BufferedRandomdoes not inherit from eitherBufferedReaderorBufferedWriterLinked PRs