SWIG vs. ctypes (Was: ANN: PyEnchant 1.5.0)

Olivier Grisel olivier.grisel at ensta.org
Tue Nov 25 11:53:12 EST 2008


2008/11/25  <cptnwillard at gmail.com>:
> On Nov 25, 4:34 pm, "Diez B. Roggisch" <de... at nospam.web.de> wrote:
>>
>> You can't use ctypes for C++, only for C-style APIs.
>>
>> Diez
>
> With some work, you can convert your C++ objects to PyObject* and then
> return the latter in a function with C bindings.

http://cython.org also has some support for C++ bindings.

I also heard that Boost.Python is very well suited to make full
featured C++ / python bindings though I never tried myself.

-- 
Olivier



More information about the Python-list mailing list