C++ and Python

cptnwillard at gmail.com cptnwillard at gmail.com
Fri Mar 9 13:35:50 CET 2007


On Mar 9, 7:04 am, "bress... at gmail.com" <bress... at gmail.com> wrote:
> Hi Everyone,
>
> I'm considering about generating some Python Bindings for C++
> libraries. What are considered the best tools for doing something like
> this? I know that there are SWIG, SIP, Boost.Python, and GCC_XML.
>
> Thanks!

Declare the functions you want to use in Python with 'extern "C"', and
make them available in a dynamic library. Then use ctypes to call them
directly.

Regards,

Willard




More information about the Python-list mailing list