compile shebang into pyc file

Jp Calderone exarkun at divmod.com
Tue Apr 26 13:33:04 EDT 2005


On 26 Apr 2005 08:19:43 -0700, Joerg Schuster <joerg.schuster at gmail.com> wrote:
>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



More information about the Python-list mailing list