read() or write() is a stream-like object. readline() or seek() (which may or may not be available in a stream-like object). flush() is a noop)
close() | |
closed | |
fileno() | Only descendants of io.RawIOBase |
flush() | |
isatty() | |
readable | |
readline() | |
readlines() | |
seek() | |
seekable | |
tell() | |
truncate() | |
writable | |
writelines() |
__enter__ and __exit__, __iter__ and __next__, and other dunder functions.