[issue8828] Atomic function to rename a file
STINNER Victor
report at bugs.python.org
Thu May 27 14:24:22 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> Antoine Pitrou <pitrou at free.fr> added the comment:
> > Would you prefer to not define the function instead of writing a pseudo-
> > atomic function?
>
> Your current implementation is useless, since it doesn't achieve anything
> new. Besides, if the function isn't atomic, don't name it atomic_XXX.
Someone may reimplement it with unlink+rename which is worse :-)
But ok, you prefer to not define the function if no real atomic implementation
can be written.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8828>
_______________________________________
More information about the Python-bugs-list
mailing list