Pass Python class to c++ and from C back to python

Ngoc edo4 at
Wed Mar 12 21:50:23 CET 2003

In Python I have a class:
class Info:
	def __init__(self, id, name, address): = id = 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

More information about the Python-list mailing list