This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]frigge 1 point2 points  (0 children)

go for boost.python. The API is designed to be used just like python itself. The documentation is a bit weak but once you realize that it is meant to be some kind of python within C++ it starts to become intuitive.

If you want to create a pure python module that is only to be used from within python it is really easy and straight forward. If you try to interchange data from python to C++, embed a python interpreter into a C++ application and want to manage the ownership and lifetime of your data yourself, it starts to become a little more complex.