|| ||Phil Thompson <phil-AT-riverbankcomputing.com> |
|| ||<python-announce-list-AT-python.org>, <python-list-AT-python.org> |
|| ||SIP v4.10 Released (Python Bindings Generator) |
|| ||Thu, 21 Jan 2010 14:26:55 +0000|
|| ||Article, Thread
SIP v4.10 has been released and can be downloaded from
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
- support for Python new-style classes
- the ability to specify the super-type and meta-type used to wrap
- 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++
- 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
- the generation of API files for IDEs that support autocompletion and call
Support the Python Software Foundation:
to post comments)