How to pass a Python callable object and its arguments to any other C++ callable though Python with PyBind11 #3667
Unanswered
Mayuresh16
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a moment consider the std::thread class which accepts a callable and is followed by arguments of that callable which could be of different types.
How to deal with such issues that arise while constructing the thread object (shown in the above example); consider for a moment that the arguments for this thread object will be provided to it through Python.
How will you write such an init method in pybind11?
Beta Was this translation helpful? Give feedback.
All reactions