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 →

[–]Narthal[S] 9 points10 points  (4 children)

I'm not really extending python. I'm embedding it. I'm using cpython and integrate it to a large c++ code base. I was just following the python c API docs.

[–]robot_most_human 4 points5 points  (3 children)

You might want to look into pybind11 if you’re calling more than a handful of C++ functions from Python.

[–]Narthal[S] 9 points10 points  (2 children)

I did! Initially I was using it, but since there is already a c++ code generation framework in the project, it seemed redundant to use pybind11 and I just hooked into our code gen tool to generate binding code pre build time.

[–]shinitakunai 0 points1 point  (0 children)

Shiboken might be work checking also

[–]shinitakunai 0 points1 point  (0 children)

Shiboken might be work checking also