Dependencies Between Compiled Modules In Python
Let's say I have two modules in a python project that are written in C++ and exposed with boost::python. mod1.hpp #ifndef MOD1_HPP #define MOD1_HPP #include
Solution 1:
Since mod1 is a Python extension, the clean approach would be to use it just like any other Python module:
object mod1 = import("mod1");
object square = mod1.attr("square");
int y = extract<int>(square(x));
Post a Comment for "Dependencies Between Compiled Modules In Python"