On 4 August 2013 21:12, Michał Górny <mgo...@gentoo.org> wrote: > I'm willing to write a patch. Please just tell me which solution would > you prefer.
The standard library has switched to atomic replacement for writing .pyc files, which seems like the appropriate solution for script writing as well (note that os.rename isn't atomic on Windows - on 3.3+, os.replace provides atomic renaming on all supported platforms) However, a "not a regular file or symlink" sanity check similar to the one now performed by pycompile (see http://bugs.python.org/issue17222) may also be appropriate here. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig