Python and C

David Boddie davidb at
Fri Mar 10 17:20:16 CET 2006

Alex Martelli wrote:
> <diffuser78 at> wrote:

> C is the lowest, most fundamental level of extension, but there are many
> other alternatives -- SWIG to wrap existing libraries, Boost or SCXX or
> SIP to wrap specifically C++ with very different philosophies (template
> heavy, minimal, Qt-based), pyrex (a Python "dialect" plus C-like
> declarations to make it compilable to fast machine code), and others
> yet.

It is a common misconception that SIP is only really used to wrap
Qt-based libraries, though that may be its main use in many projects:

 "SIP is a tool that makes it very easy to create Python bindings
  for C and C++ libraries. It was originally developed to create PyQt,
  the Python bindings for the Qt toolkit, but can be used to create
  bindings for any C or C++ library."



More information about the Python-list mailing list