[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

Peter Simanyi report at bugs.python.org
Wed May 27 01:07:55 CEST 2009


Peter Simanyi <psimanyi at namcobandaigames.com> added the comment:

I realized that my patch, with a chmod(..., 0600), may not work under 
certain conditions where the original file is owned by a different user 
but the directory is group- or world-writable. A more likely correct fix 
would use chmod(..., 0666).

At any rate: someone should test the various combinations of whether this 
user or another user owns the original .pyc file.

----------

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


More information about the Python-bugs-list mailing list