Re: Calling a python function from C++

2005-05-09 Thread djw
[EMAIL PROTECTED] 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?

Calling a python function from C++

2005-05-08 Thread lamthierry
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. -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a python function from C++

2005-05-08 Thread Martin v. Löwis
[EMAIL PROTECTED] 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. See the Embedding and Extending