[Cython] non-virtual methods

Vitja Makarov vitja.makarov at gmail.com
Wed Aug 24 21:00:12 CEST 2011

Recently I used cython in my project and I came with idea that
sometimes virtual methods are overkill.

What's about adding non-virtual decorator for c[p]def methods?

cdef class Foo:
     cpdef int is_active(self):
             return clib.obj_is_active(self._cobj)


More information about the cython-devel mailing list