[issue17222] py_compile.compile() explicitly sets st_mode for written files

Antoine Pitrou report at bugs.python.org
Tue Feb 19 20:52:58 CET 2013


Antoine Pitrou added the comment:

Ah, right. Well, there would be an argument not to use os.replace() in py_compile, since it's an offline processing step which generally shouldn't race with another (online) processing step.

Still, I wonder what the use case is (apart from the /dev/null case for which the answer is simply "don't do it" :-)).

----------

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


More information about the Python-bugs-list mailing list