osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] best place for an atomic file API


Martin v. L?wis <martin <at> 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