Skip Montanaro <s...@pobox.com> added the comment:

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

----------
nosy: +skip.montanaro

_______________________________________
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

Reply via email to