[issue8828] Atomic function to rename a file

Antoine Pitrou report at bugs.python.org
Fri Dec 23 12:05:32 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

So how about providing a new public `os` module function doing a rename-with-overwrite on all platforms?
We could name it e.g. os.replace().
os.rename_overwrite() is another possibility, more explicit but also longer.

----------
stage:  -> needs patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8828>
_______________________________________


More information about the Python-bugs-list mailing list