◐ Shell
clean mode source ↗

Message 337941 - Python tracker

Document of [BufferedIOBase](https://docs.python.org/3/library/io.html#io.BufferedIOBase) says:

>   ...unlike their RawIOBase counterparts, they will never return None.

But this example shows the above statement is not true:

    import io
    import os
    import sys

    os.set_blocking(sys.stdin.fileno(), False)
    print(isinstance(sys.stdin.buffer, io.BufferedIOBase))
    print(sys.stdin.buffer.read())

Output:

    True
    None