By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,621 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,621 IT Pros & Developers. It's quick & easy.

Python to C/C++

P: n/a
(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.
Mar 19 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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.

Mar 20 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.