On Wed, Aug 24, 2011 at 12:00 PM, Vitja Makarov <[email protected]> wrote: > 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: > @cython.nonvirtual > cpdef int is_active(self): > return clib.obj_is_active(self._cobj)
We have toyed with the idea of using a "final" modifier. Note that this would only work for a final class or a pure cdef method. - Robert _______________________________________________ cython-devel mailing list [email protected] http://mail.python.org/mailman/listinfo/cython-devel
