[Python-Dev] Ctypes and the stdlib (was Re: LZMA compression support in 3.3) (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Mon Aug 29 04:59:41 CEST 2011


On Mon, Aug 29, 2011 at 12:27 PM, Guido van Rossum <guido at python.org> wrote:

I wonder if for this particular purpose SWIG isn't the better match. (If SWIG weren't universally hated, even by its original author. :-)

SWIG is nice when you control the C/C++ side of the API as well and can tweak it to be SWIG-friendly. I shudder at the idea of using it to wrap arbitrary C++ code, though.

That said, the idea of using SWIG to emit Cython code rather than C/API code may be one well worth exploring.

Cheers, Nick.

-- Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-Dev mailing list