3 ms·
If all you need/want is to call c++ code from python then pybind11 is the way to go. Cython really comes into its own when you have some existing python code yo
by dagw 3y ago
If all you need/want is to call c++ code from python then pybind11 is the way to go. Cython really comes into its own when you have some existing python code you want to 'port' to a C extension.
- bippingchip 3y agoThank you! For now I am just binding c++ to Python but I expect/fear the lines might start blurring, so cython might come in handy then.
- ngoldbaum 3y agoIt’s a little easier to write idiomatic python bindings for a C/C++ library in Cython IMO, because you’re writing the bindings in a language that’s almost python.