[Cython] non-virtual methods
stefan_ml at behnel.de
Wed Aug 24 21:06:17 CEST 2011
Vitja Makarov, 24.08.2011 21:00:
> 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)
How does that differ from the "final" decorator?
More information about the cython-devel