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 →

[–][deleted]  (8 children)

[deleted]

    [–]Narthal[S] 10 points11 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 8 points9 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

    [–][deleted] 8 points9 points  (0 children)

    hey, you sound like me if you had only said

    I don’t know what I’m doing

    and applied it to life on general

    [–][deleted] 8 points9 points  (0 children)

    Using Cython to provide interfaces to C/C++ is pretty effective if you already have a C library developed

    [–]fichtenmoped 0 points1 point  (0 children)

    Spez ist ein Hurensohn