Pass Python class to c++ and from C back to python
Ngoc
edo4 at emich.edu
Wed Mar 12 15:50:23 EST 2003
In Python I have a class:
class Info:
def __init__(self, id, name, address):
self.id = id
self.name = name
self.address = adress
I want to pass python class Info to C++ extension. Let C++ function
load id, name, and address and pass it back to python script. I want
to pass the class as reference. However, I don't know how to pass
python class attribute to C and get it back. Please help.
Thank you
Ngoc
More information about the Python-list
mailing list