[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Would you like to provide a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mai

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-24 Thread Marco
Marco added the comment: I attach a patch to correct this little bug. Bye ;) -- nosy: +markon Added file: http://bugs.python.org/file14049/import_patch.c ___ Python tracker ___

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-22 Thread Oleg Broytmann
Oleg Broytmann added the comment: I will try to look at import.c, though I must say I am a bad C programmer. I have switched to Python after ten years of Pascal. Low priority is ok. -- ___ Python tracker _

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-22 Thread Joe Amenta
Joe Amenta added the comment: 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

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-20 Thread Oleg Broytmann
New submission from Oleg Broytmann : On compilation of .pyc/.pyo bytecode files on import Python 2.6 copies Unix file access attributes (-rwx-) from the imported file. I'd think it's ok except for executable (-x-) bit - bytecode files are not directly executable. That is, for a module.py with att