Replies: 2 comments 3 replies
-
Could anyone help here? Even just to confirm that the above is or is not possible with pybind11? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You could just import the file and/or function from C++ side. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
So far my pybind11 library embeds the interpreter (pybind11_add_module) and produces me a library of wrapped c++ code, that I can call from python. To allow seamless operation for the user, I have functions that would be better/faster/easier to write in pure python, rather than writing them in long-hand in c++ and creating a wrapper. But, I'd like them to be "added" (I know that's the wrong word) to the same python module that pybind11 creates for my pure c++ code. Is that possible so that the user could call them and in this instance they happen (unknowingly) to be just calling pure python from another .py file? Could I have a MWE to do that? Hopefully I've explained that correctly. Thanks
Beta Was this translation helpful? Give feedback.
All reactions