This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author joe.amenta
Recipients joe.amenta, loewis, phd
Date 2009-05-22.19:54:01
SpamBayes Score 3.3693968e-06
Marked as misclassified No
Message-id <1243022043.84.0.0340471890976.issue6070@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-05-22 19:54:03joe.amentasetrecipients: + joe.amenta, loewis, phd
2009-05-22 19:54:03joe.amentasetmessageid: <1243022043.84.0.0340471890976.issue6070@psf.upfronthosting.co.za>
2009-05-22 19:54:02joe.amentalinkissue6070 messages
2009-05-22 19:54:01joe.amentacreate