Compile C program -> .pyc file

Ernesto erniedude at gmail.com
Fri Oct 21 11:34:45 EDT 2005


Fredrik Lundh wrote:
> "Ernesto" wrote:
>
> > Is there a way to compile a C program into a .pyc file that has the
> > same behavior as the compiled C program?
>
> unless you find a C->Python compiler, no.  PYC files contain Python bytecode,
> C compilers usually generate native code for a given machine platform.
>
> </F>


Yeah, I know it can't really be done in ONE step, but I was hoping it
was possible in 'n' steps.




More information about the Python-list mailing list