Any Good Tutorials On Using Python and C++ Together?

Started by
1 comment, last by Fruny 19 years, 10 months ago
I've been searching around lately learning Python as a scripting language. Now I think it's come time that I leared how to incorperate it with C++ so it can finally be a bit more useful. I've looked high and low but I really can't seem to find a good tutorial that explains everything on using C/C++ and Python together.
Advertisement
Maybe you could try something like Boost.Python.

There is also a SIG (Special Interest Group) right over at
Python C++ SIG.

Hope this helps.
神はサイコロを振らない!
Most of what I know about Python/C(++) interaction comes from the extending/embedding chapters of Python in a Nutshell. The rest comes from the doc on python.org, boost::python, and trying things out a bit by hand. SWIG and Elmer are tools which may also help you embed python.

I have already outlined a couple times how to do things in the forums. If you have specific questions, ask.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement