How can I deliver a py::class to the Python function that receiving a cls arg from C++ side? #4668
Unanswered
JoyChenNo1
asked this question in
Q&A
Replies: 1 comment
-
mark |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For some reasons, I have to use pybind to call Python third-party packages(such as python-docx) to deal with office documents from the C++ sides, while python-docx package need to accept a custom python class to deal with the custom xml node.
some thing like that:
Is there possible for me to define a py::class from C++ side and deliver to python function like this?:
Beta Was this translation helpful? Give feedback.
All reactions