[issue19965] Non-atomic generation of Include/Python-ast.h and Python/Python-ast.c

Serhiy Storchaka report at bugs.python.org
Thu Dec 12 18:42:44 CET 2013


Serhiy Storchaka added the comment:

I think os.replace() should be used instead os.rename(). Or pair os.unlink()/os.rename().

And perhaps for decreasing chance of race between creating .c and .h files, both renames should be done after writing both files.

----------

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


More information about the Python-bugs-list mailing list