Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Passing handlers between bound c++ libs

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


freyr.magnusson at gmail

Jul 14, 2009, 4:07 PM

Post #1 of 2 (102 views)
Permalink
Passing handlers between bound c++ libs

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?
--
http://mail.python.org/mailman/listinfo/python-list


icanbob at gmail

Jul 16, 2009, 6:50 AM

Post #2 of 2 (80 views)
Permalink
Re: Passing handlers between bound c++ libs [In reply to]

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

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.