Movatterモバイル変換
[0]ホーム
[Python-Dev] best place for an atomic file API
Steven D'Apranosteve at pearwood.info
Thu Feb 16 00:29:59 CET 2012
Charles-François Natali wrote:> Hi,>> 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.[...]> What would be the best place for a such a class?> _pyio, tempfile, or a new atomicfileshutil perhaps?As a user, that's the third place I look for file utilities, after builtin functions and os module.-- Steven
More information about the Python-Devmailing list
[8]ページ先頭