[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite
Marco
report at bugs.python.org
Sun May 24 16:57:39 CEST 2009
Marco <marcusbu at gmail.com> added the comment:
It seems Python is using a default mask to compile modules.
If you open a file b.py as "r", and you import it from a.py, you can see
that b.pyc is:
-rwxr-xr-x 1 marco marco 9 24 mag 16:17 a.py
-r--r--r-- 1 marco marco 10 24 mag 16:17 b.py
-rw-r--r-- 1 marco marco 122 24 mag 16:46 b.pyc
If you try to run a.py:
-rwxr-xr-x 1 marco marco 9 24 mag 16:17 a.py
-r-xr-xr-x 1 marco marco 10 24 mag 16:17 b.py
you'll get:
-rw-r--r-- 1 marco marco 122 24 mag 16:49 b.pyc
as you can see, there is a default "mode" to create compiled modules...
----------
nosy: +markon
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6074>
_______________________________________
More information about the Python-bugs-list
mailing list