Calling C++ Modules in Python
Terry Reedy
tjreedy at udel.edu
Fri Mar 11 23:27:06 EST 2011
On 3/11/2011 4:15 PM, Patrick wrote:
> Hi,
>
> I saw in the Beginner document that "•Is easily extended by adding new
> modules implemented in a compiled language such as C or C++. ".
>
> While to my investigation, it seems not that easy or did I miss
> something?
>
> boost python (C++ libraries need to be re-compiled with written
> wrappers again?).
> SWIG (It works by taking the declarations found in C/C++ header and
> using them to generate the wrapper code that scripting languages need
> to access the underlying C/C++ code).
cytpes does not require recompilation. Not as fast either. But good
enough for many purposes.
--
Terry Jan Reedy
More information about the Python-list
mailing list