wrapping C++, how to wrap an object?
Mike Thompson
nonebye-mail
Sun Mar 7 05:53:23 EST 2004
"Torsten Mohr" <tmohr at s.netic.de> wrote in message
news:c2equb$4la$2 at schleim.qwe.de...
> Hi,
>
> i just read everything that i found for writing modules
> and interfacing to C/C++.
>
> I'd like to write some wrapper code for some C++ class.
> For this i want to store an object of this class in
> Python somehow.
>
> how can i store a memory region (the object) in a Python
> data type?
>
>
AFAIK, you have 2 mainstream choices for wrapping C++:
1. Boost.Python - http://www.boost.org/libs/python/doc/
2. SWIG - http://www.swig.org/
I'm also aware of:
3. SIP - http://www.riverbankcomputing.co.uk/sip/docs/sipref.html
I use Boost.Python and have found it to be excellent.
--
Mike
More information about the Python-list
mailing list