On Fri, May 17, 2013 at 8:26 PM, Shriramana Sharma <
sam...@gmail.com> wrote:
> On Thu, May 9, 2013 at 12:27 AM, Robert Bradshaw <
robe...@gmail.com> wrote:
>> . You can't (yet?) actually extend a C++ class as a cdef class
>> accessible/further extendable from Python. (You can create a cdef
>> class that the C++ wraps and delegates all methods to manually
>> though.)
>
> Hi and thanks for your reply. Do I then understand correctly that it
> is (currently) not possible to *subclass* a C++ class within Cython,
You can, see the above example, but you end up with another C++ class
that's not accessible from Python.
> and the workaround is to write a cdef class that *wraps* all its members?
If you want it to be visible from Python, yes. Cython is not a
wrapper-generator (though a great too to build one on).
- Robert