Skip to content

Files are not flushed on process exit #3624

@tanmaykm

Description

@tanmaykm

This would most likely create a 0 byte file if the process exits immediately after:

write(open("t", "w"), "hello")

Whereas this behaves properly:

f = open("t", "w")
write(f, "hello")
flush(f)

Can be a source of subtle bugs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions