SIP v4.10 Released (Python Bindings Generator)

Phil Thompson phil at riverbankcomputing.com
Thu Jan 21 09:26:55 EST 2010


SIP v4.10 has been released and can be downloaded from
http://www.riverbankcomputing.com/software/sip/.

SIP is a tool for generating Python modules that wrap C or C++ libraries.
It is similar to SWIG.  It is used to generate PyQt and PyKDE.

The SIP license is similar to the Python License and is also licensed under
the GPL v2 and v3.

SIP runs on Windows, UNIX, Linux and MacOS/X.

SIP requires Python v2.3 or later and fully supports Python v3.

This release adds support for keyword arguments and docstrings.  Docstrings
may be either explictly specified or automatically generated.
Automatically generated docstrings describe the Python signatures of all
available overloads for a callable.  A significantly improved error
reporting mechanism uses those docstrings in exceptions raised when
arguments with incorrect types are passed.

Other features of SIP include:

- extension modules are implemented as a single binary .pyd or .so file (no
  Python stubs)
- support for Python new-style classes
- the ability to specify the super-type and meta-type used to wrap
  instances
- generated modules are quick to import, even for large libraries
- thread support
- the ability to re-implement C++ abstract and virtual methods in Python
- the ability to define Python classes that derive from abstract C++
  classes
- the ability to spread a class hierarchy across multiple Python modules
- the ability to wrap a C++ class in different ways and allow an
  application to select a particular implementation at run-time
- support for C++ namespaces
- support for C++ exceptions
- support for C++ operators
- an extensible build system written in Python that supports over 50
  platform/compiler combinations
- the generation of API files for IDEs that support autocompletion and call
  tips.



More information about the Python-list mailing list