Hello,
is there a way to compile a python file foo.py to foo.pyc (or foo.pyo) such that foo.pyc can be run with 'foo.pyc' (as opposed to 'python foo.pyc') on the command line?
No. However, on Linux, read up on /proc/sys/fs/binfmt_misc
Jp -- http://mail.python.org/mailman/listinfo/python-list