Replies: 1 comment
-
There is no transparent inter-op between pybind11 and nanobind because this would force nanobind to inherit all of the complexities of pybind11. The reason of existence of this project was to get rid of this complexity, so this is not a solvable issue. Nanobind can treat a pybind11 object like any other Python object ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have exposed the C++ class
SimpleClass
to Python using nanobind and after setting some parameters, I would like to call a C++ functionsetup_from_simple_class
which is exposed to Python using pybind. I see a type mismatch: the C++ side expectstest::SimpleClass
arg and receivestest._test.SimpleClass
. (Here test is my namespace).I cannot change which library is used for bindings, so my question is it possible to do type conversions etc. in order to allow pybinded C++ function to take in a nanobinded object class?
Beta Was this translation helpful? Give feedback.
All reactions