[Cython] Syntax to declare a c++ class?

Robert Bradshaw robertwb at math.washington.edu
Wed May 6 21:30:17 CEST 2009


Just trying to get a syntax, how about

cdef extern from "header.h":
     cdef cclass MyClass[TemplateParamers](BaseCPPClass):
         int member
         int method(int)

The only concern I have is whether or not "cdef cclass" is to similar  
to "cdef class" (probably not). Any other ideas?

- Robert



More information about the Cython-dev mailing list