does close() imply flush() in Python?

Yes. It uses the underlying close() function which does that for you (source).

Leave a Comment