Python and C

Alex Martelli aleaxit at yahoo.com
Sat Mar 11 03:47:45 CET 2006


David Boddie <davidb at mcs.st-and.ac.uk> wrote:

> Alex Martelli wrote:
> > <diffuser78 at gmail.com> 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."

Ah, I see that SIP 4 is much better -- I was more experienced with 3.*,
which, what between lack of docs, no support for C, etc, was less
suitable for such a general role.  If SIP 4 can be installed quite
independently of Qt, then it's indeed grown to the stature you mention.


Alex



More information about the Python-list mailing list