Python to C/C++
Dan Stromberg
dstromberglists at gmail.com
Thu Mar 20 14:45:55 EDT 2008
On Wed, 19 Mar 2008 10:24:16 -0700, Patrick Mullen wrote:
> (sorry michael, didn't mean to personal post
>
> On Wed, Mar 19, 2008 at 9:24 AM, Michael Wieher wrote:
> > I think py2exe does this, but it might be a bit bloated
>
> No, py2exe basically bundles the main script and the interpreter
> together so it's easy to run and requires no python installation.
>
> Look into pyrex and pypy. A mature translator doesn't exist. Also
> there is ctypes which goes in reverse letting you use more c from
> python easily.
I believe pyrex allows you to write very python-like code but build a
binary extension module from it that runs at nearly C speed. ISTR it
does generate .c files.
There's also shedskin, which I believe is a static python -> C++
translator that was written as part of google's summer of code.
More information about the Python-list
mailing list