On Jul 14, 7:07 pm, Freyr <freyr.magnus...@gmail.com> 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: http://www.icanprogram.com/06py/main.html bob -- http://mail.python.org/mailman/listinfo/python-list