python to C ?
Jason Lai
jmlai at uci.edu
Fri Sep 10 15:32:15 EDT 2004
mudd at vex.net wrote:
> I seem to remember an announcement on Daily Python-URL in the past year or
> two about a project that converts Python to C. The goal wasn't to convert
> generic Python but a limited subset. Something else unique was that the
> generated C code was sort of object oriented, actually readable.
>
> But I don't remember the project name and can't find it even after many
> tries with Google, Vaults of P., etc. And it wasn't Pyrex. Does anyone
> recognize what I'm describing?
>
> John
>
The ones I've heard of are Python2C and PyFront. But I think they're
pretty simplistic and haven't been updated for a long long time.
Pyrex sort of converts Python into C. It's not exactly Python code
because of some limitations, I think, but it comes close. But the C code
generated is *ugly*. I think the mangled variable naming has a lot to do
with that.
Phil Frost suggested Psyco, but that actually generates assembly code,
not C.
- Jason
More information about the Python-list
mailing list