New submission from Steven D'Aprano <st...@pearwood.info>: In Python 2.6, .pyc files inherit the executable bit from their .py file. This can lead to strangeness:
$ echo pass > test.py $ chmod u+x test.py $ python2.6 -c "import test" $ ls -l test.pyc -rwxrw-r-- 1 steve steve 94 2009-09-29 16:54 test.pyc $ ./test.pyc : command not found �� ---------- components: Interpreter Core messages: 93254 nosy: stevenjd severity: normal status: open title: .pyc files are set executable if the .py file is too type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7016> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com