does close() imply flush() in Python? June 3, 2023 by Tarik Yes. It uses the underlying close() function which does that for you (source).