This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Arfrever, benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, serhiy.storchaka
Date 2013-12-12.17:42:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386870164.3.0.950265144743.issue19965@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-12-12 17:42:44serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, georg.brandl, ncoghlan, benjamin.peterson, Arfrever
2013-12-12 17:42:44serhiy.storchakasetmessageid: <1386870164.3.0.950265144743.issue19965@psf.upfronthosting.co.za>
2013-12-12 17:42:44serhiy.storchakalinkissue19965 messages
2013-12-12 17:42:44serhiy.storchakacreate