Message88211
Python writes compiled files with the same file permissions as the
source module. In your specific example:
$ python2.6 -c 'import module'
This will produce module.pyc with the same attributes as module.py
While I am not familiar with modifying C stat structs, I can say that in
trunk/Python/import.c, somewhere after line 977 but before line 1014,
the stat struct "st" must be examined for S_IXUSR, S_IXGRP, and S_IXOTH
and have those bits removed in order to never produce a compiled module
with "x" in the stat. I would assign low priority to this issue, as it
has little impact on the behavior of Python, even though it might cause
unintended consequences to a user trying to execute the bytecode, if the
user interprets the "x" to mean that it is executable by the system. |
|
Date |
User |
Action |
Args |
2009-05-22 19:54:03 | joe.amenta | set | recipients:
+ joe.amenta, loewis, phd |
2009-05-22 19:54:03 | joe.amenta | set | messageid: <1243022043.84.0.0340471890976.issue6070@psf.upfronthosting.co.za> |
2009-05-22 19:54:02 | joe.amenta | link | issue6070 messages |
2009-05-22 19:54:01 | joe.amenta | create | |
|