Calling a python function from C++

djw dwelch at vcd.hp.com
Mon May 9 12:17:25 EDT 2005


lamthierry at gmail.com wrote:
> Let's say I have a python function do some math like the following:
> 
> def doMath(self):
>    self.val = self.val + 1
> 
> 
> How can I call this python function from C++? Assuming I have some sort
> of Python wrapper around my C++ codes.
> 

Elmer?

http://elmer.sourceforge.net/



More information about the Python-list mailing list