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 skip.montanaro
Recipients skip.montanaro, steven.daprano
Date 2009-09-29.11:51:40
SpamBayes Score 1.2604336e-07
Marked as misclassified No
Message-id <19137.62660.630633.794514@montanaro.dyndns.org>
In-reply-to <1254207434.5.0.560245182019.issue7016@psf.upfronthosting.co.za>
Content
Steven> $ echo pass > test.py
    Steven> $ chmod u+x test.py
    Steven> $ python2.6 -c "import test"
    Steven> $ ls -l test.pyc
    Steven> -rwxrw-r-- 1 steve steve 94 2009-09-29 16:54 test.pyc
    Steven> $ ./test.pyc
    Steven> : command not found   

And if you try ./test.py I presume you also get an error in this trivial
case.  If your .py file is not meant to be executed, why set the execute
bit?  I do agree it's a little strange to also set the execute bit on the
.pyc file though.

Skip
History
Date User Action Args
2009-09-29 11:51:42skip.montanarosetrecipients: + skip.montanaro, steven.daprano
2009-09-29 11:51:40skip.montanarolinkissue7016 messages
2009-09-29 11:51:40skip.montanarocreate