Call C/C++ from Python with hooks to call Python inside C++
<p>We know we can use SWIG to call C/C++ from Python.</p>

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

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

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

<p>Is there a way to achieve this kind of things? Thanks..</p>