Message189708
| Author |
neologix |
| Recipients |
barry, brett.cannon, christian.heimes, doko, ncoghlan, neologix, pitrou, python-dev, r.david.murray, vstinner |
| Date |
2013年05月20日.22:14:26 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAH_1eM0wtbcQP30OnvR-JS2bJ9=E6CQYqRa+DEKgj3wN+MsR0w@mail.gmail.com> |
| In-reply-to |
<20130520180000.302d24f6@anarchist> |
| Content |
The workaround would be to unlink the file first, and then try to
create it with O_EXCL. You have a short window where there's no file,
but that shouldn't be a problem in this specific case, and it would
work on Windows.
As for issue #17222, well, many applications use temporary files and
rename (e.g. most web browsers), so I'd be tempted to say "don't do
it".
Of course, I would feel kinda bad if Python broke Debian's builders (I
don't care about Gentoo though ;-)
Its funny how an seemingly harmless change can introduce nasty regressions... |
|