[Python-Dev] best place for an atomic file API (original) (raw)

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Feb 16 11:20:34 CET 2012


Martin v. Löwis <martin v.loewis.de> writes:

One way of providing this might be a "u" mode for open, which updates an existing file on close (unlike "a", which appends, and unlike "w", which truncates first).

Doesn't "r+" cover this?

Regards,

Vinay Sajip



More information about the Python-Dev mailing list