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).
2.1m questions
2.1m answers
60 comments
57.0k users