Need info on integrating python into my application

Scott F. Rasmussen (scottr@atherton.com)
Wed, 7 Oct 92 15:27:07 PDT

Hello everyone,

I have recently acquired python and trying to understand how to integrate python in with my
application. I have looked through all the documentation but am still mystified by one question. How
do I call a python function from C? This is the typical callback situation.

In the callback I want to execute the following bit of python code.

def callback (args):
stuff ....

In C how do I call the callback function? The question is how do I get a handle to the function
callback so that I can call it.

Thank you for any help...

---

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-= Scott Rasmussen scottr@atherton.com Atherton Technology {sun|decwrl}!athertn.com