A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-February/116529.html below:

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

[Python-Dev] best place for an atomic file API [Python-Dev] best place for an atomic file APIBen Finney ben+python at benfinney.id.au
Thu Feb 16 02:19:39 CET 2012
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.

[…]
> What would be the best place for a such a class?
> _pyio, tempfile, or a new atomicfile

I would expect to find it within ‘os’ or submodules of ‘os’.

-- 
 \        “We should be less concerned about adding years to life, and |
  `\         more about adding life to years.” —Arthur C. Clarke, 2001 |
_o__)                                                                  |
Ben Finney

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4