Passing handlers between bound c++ libs

bobicanprogram icanbob at
Thu Jul 16 09:50:52 EDT 2009

On Jul 14, 7:07 pm, Freyr <freyr.magnus... at> wrote:
> I have a python bound physics library that uses handler to process
> events. The passing of handlers between c++ and python causes a huge
> overhead slowing down the process.  Can I implement a handler in my
> custom python bound c++ lib B and pass it to blackbox python bound c++
> lib A so that A would call B directly without passing through the
> python layer?  Or to phrase the question differently:  Can I pass a
> handler from B through python to A so that A will invoke B with out
> calling into python code?

Depending on your exact configuration you may be able to wrap that C++
library using the SIMPL toolkit and get at your data with a
message.    There is some "hello world" demo code here:


More information about the Python-list mailing list