Re: [pygccxml-development] special functions/operators
Brought to you by:
mbaas,
roman_yakovenko
|
From: Matthias B. <ba...@ir...> - 2006-08-28 13:10:14
|
Neal Becker wrote:
>> root.Class("X").cdef("__iadd__", "addAssign", return_self())
>
> One of the really cool things about boost::python is that you can not only
> wrap c++ classes, but synthesize new functionality. Specifically, you can
> make python classes that don't have c++ equivalents, or add features to
> python classes that don't exist in the c++ class.
>
> We can indeed use cdef for this, but it's rather low level. I wonder if we
> can make a better api for this, maybe something like:
>
> add_method (...)
Can you elaborate on the '...'? (as this is the interesting part) How
would you like the API to look like?
- Matthias -
|