wrapping C++, how to wrap an object?

Thomas Heller theller at python.net
Mon Mar 8 15:03:39 EST 2004


>> 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.
>> 
> Hi,
>
> thanks for that hint.
>
> But is there no way to do this in plain python?
>
> I don't really want to use any additional libraries,
> as i want to use this code in the office and license
> problems are always a big problem there.
>
> Can i somehow wrap a C++ object in a python data type
> just without any additional libraries?

Is PyCObject what you need? Depends on what you mean by 'wrap'...

Thomas





More information about the Python-list mailing list