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

Diez B. Roggisch deets at nospam.web.de
Tue Nov 25 15:05:32 EST 2008


cptnwillard at gmail.com schrieb:
> 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.

Or you use SWIG or SIP or Python::Boost to do that for you with less work.


Diez



More information about the Python-list mailing list