1

We know we can use SWIG to call C/C++ from Python.

But is that possible to pass on several Python callbacks inside those C/C++?

Basically what I want is: Call C++ from Python: pysomeswig.SomeClass(someargs, some_callback)

where some_callback is a Python routine, and SomeClass can call some_callback one or multiple times in its execution.

Is there a way to achieve this kind of things? Thanks..

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.