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 steven.daprano
Recipients steven.daprano
Date 2009-09-29.06:57:07
SpamBayes Score 7.42323e-05
Marked as misclassified No
Message-id <1254207434.5.0.560245182019.issue7016@psf.upfronthosting.co.za>
In-reply-to
Content
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 ��
History
Date User Action Args
2009-09-29 06:57:14steven.dapranosetrecipients: + steven.daprano
2009-09-29 06:57:14steven.dapranosetmessageid: <1254207434.5.0.560245182019.issue7016@psf.upfronthosting.co.za>
2009-09-29 06:57:07steven.dapranolinkissue7016 messages
2009-09-29 06:57:07steven.dapranocreate