pybind11: how to add document the exported module?
I have some c++ code, and I successfully export it to python module using pybind11. The code is:
How to unpack multiple return values when calling a python function from C++ using pybind11 embed.h?
#python code in a module called calc def some_function(i, j): return i, j
//C++ code py::module_ calc = py::module_::import("calc"); py::object result = calc.attr("some_function")(1, 2);
pybind11 – accessing a module within a package from C++
I have a C++/Pybind11 function that receives a Python package foo
as argument.