[New-bugs-announce] [issue7016] .pyc files are set executable if the .py file is too

Steven D'Aprano report at bugs.python.org
Tue Sep 29 08:57:14 CEST 2009


New submission from Steven D'Aprano <steve at 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 <report at bugs.python.org>
<http://bugs.python.org/issue7016>
_______________________________________


More information about the New-bugs-announce mailing list