Skip to main content
function Readable.read
def Readable.read(
size: int = ,
/
) -> bytes
Reads bytes from this source. If size is provided, reads up to that many bytes. If size is not provided, reads until EOF. Returns the bytes read. function Readable.read_to_string
def Readable.read_to_string() -> str
Reads all bytes until EOF in this source and returns a string. If successful, this function will return all bytes as a string. property Readable.is_tty
Readable.is_tty: bool
Returns true if the underlying stream is connected to a terminal/tty.