Import Python Class/methods into C++

Keith Moore keithmoore1 at adelphia.net
Mon Nov 8 06:27:16 EST 2004


I'm a Python newbie,

Can anyone show me an example of how to import a python class into a C++
program?
I am able to use PyImort_ImportModule to import a module, and
PyObject_GetAttrString to import the function from the module.
Now I converted that module to a class.  I need to import methods from that
class into my C++ program.

Help!!!

Keith




More information about the Python-list mailing list