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

Antoine Pitrou report at bugs.python.org
Fri May 17 11:51:50 CEST 2013


Antoine Pitrou added the comment:

> Please at least crash with an exception instead: add
> one easy check to py_compile.compile() and complain if cfile points
> to an existing non-regular file.

That's a good point (except that symlinks should probably be allowed too).

----------

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


More information about the Python-bugs-list mailing list