Skip to main content
function Writable.close
def Writable.close() -> None
Closes this output stream. This drops the underlying handle, and subsequent writes will fail with “stream is closed”. function Writable.flush
def Writable.flush() -> None
Flushes this output stream, ensuring that all intermediately buffered contents reach their destination. function Writable.write
def Writable.write(
buf: typing.Any,
/
) -> int
Writes a buffer into this writer, returning how many bytes were written. property Writable.is_tty
Writable.is_tty: bool
Returns true if the underlying stream is connected to a terminal/tty.