[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
- Previous message: [Python-Dev] best place for an atomic file API
- Next message: [Python-Dev] best place for an atomic file API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] best place for an atomic file API
- Next message: [Python-Dev] best place for an atomic file API
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]