469,935 Members | 2,232 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,935 developers. It's quick & easy.

Translate Cpp into python code

Hi there,

I'd like to ask if is there any tool that's able to parse C++ code and convert
it into Python script?
Probalby entirely would be difficult, but a good percentage I think it would
be possible and the remain asking to the user what to do.

F
Apr 17 '06 #1
2 1572
If you are looking for ways to access C++ code in Python, there are
several (Boost, SIP, CXX, SWIG, Weave etc). Unless your needs are
somehow unique, this is the preferred approach.

People usually convert higher level languages to lower level
languages for performance (For example Python to C++ via ShedSkin or
Eiffel to C etc), not the other way around since the principle benefit
of HLLs is readable code and code generators don't usually generate
human readable code because they can't see the intended theme of your
code.

Apr 17 '06 #2
Alle 21:36, luned́ 17 aprile 2006, Ravi Teja ha scritto:
If you are looking for ways to access C++ code in Python, there are
several (Boost, SIP, CXX, SWIG, Weave etc).
This way I knew about it.
People usually convert higher level languages to lower level
languages for performance


Frankly I'm not looking for performances, but a viable python script which
won't be tied up to a single platform. Those parts of the code which are
calling proprietary functions will be removed.
Probably the first step to make a port on a multiplatform concept.
Another point will be a better chance to learn programming once I got the
translation.

F
Apr 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Bruce Dickey | last post: by
303 posts views Thread by mike420 | last post: by
7 posts views Thread by Johnny Lee | last post: by
6 posts views Thread by bobueland | last post: by
18 posts views Thread by KraftDiner | last post: by
bvdet
9 posts views Thread by bvdet | last post: by
4 posts views Thread by destroooooy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.