Instant flush after newlines

Is it possible to pass an option to open("/path/to/file", "w") so that the writes occur instantaneously after each newline (without me having to flush it?

1 Like