On 5 September 2015 at 18:10, William Stein <wst...@gmail.com> wrote:

> With sip/swig, I think it's much more automated, since on
> the Python side you get normal Python classes, which support multiple
> inheritance.
>

With Boost Python you also get the original C++ class as a Python class. It
also supports inheritance (you want to expose your base C++ class as Python
class, inherit from it in Python and store it in a vector of base pointers
on the C++ side? You can), overriding of virtual methods from Python
(including pure virtuals and abstract base classes), iterators, automatic
exception translation, embedding, overloaded functions, custom converters,
automatic pickle support, automatic handling of smart pointers and a host
of other features.

The documentation was recently updated here:

http://boostorg.github.io/python/doc/html/reference/index.html

IMO its only problem is that no new features have been added in ages and it
is essentially in maintenance mode (unless someone picks the development
up). The last substantial development was when Python 3.x support was
added, so at least it is future proofed for a while. To me its design is
unparalleled by any C++ wrapping tool for any language.

Cheers,

  Francesco.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to