Pass Python class to c++ and from C back to python
Jp Calderone
exarkun at intarweb.us
Wed Mar 12 19:34:09 EST 2003
On Wed, Mar 12, 2003 at 12:50:23PM -0800, Ngoc wrote:
> 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
http://python.org/doc/current/api/object.html
Jp
--
http://catandgirl.com/view.cgi?90
--
up 9 days, 15:59, 11 users, load average: 0.09, 0.03, 0.01
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030312/abeea0ef/attachment.sig>
More information about the Python-list
mailing list