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

Brian Curtin brian at python.org
Thu Feb 16 02:25:19 CET 2012


On Wed, Feb 15, 2012 at 19:19, Ben Finney <ben+python at benfinney.id.au> wrote:
> Charles-François Natali <neologix at free.fr> writes:
>
>> Issue #8604 aims at adding an atomic file API to make it easier to
>> create/update files atomically, using rename() on POSIX systems and
>> MoveFileEx() on Windows (which are now available through
>> os.replace()). It would also use fsync() on POSIX to make sure data is
>> committed to disk.
>
> These make it quite OS-specific.

That'll happen when solving problems on different OSes. Do you propose
a more platform agnostic solution?


More information about the Python-Dev mailing list