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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19965>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to