In Python, and in general - does a close() operation on a file object imply a flush() operation?
close()
flush()
Yes. It uses the underlying close() function which does that for you (source).
548k questions
547k answers
4 comments
86.3k users