Vitja Makarov, 24.08.2011 21:17:
2011/8/24 Stefan Behnel:
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:
@cython.nonvi
2011/8/24 Vitja Makarov :
> 2011/8/24 Stefan Behnel :
>> 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:
On Wed, Aug 24, 2011 at 12:17 PM, Vitja Makarov wrote:
> 2011/8/24 Stefan Behnel :
>> 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 me
2011/8/24 Stefan Behnel :
> 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:
>> @cython.nonvirtual
>>
On Wed, Aug 24, 2011 at 12:00 PM, Vitja Makarov 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_activ
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:
@cython.nonvirtual
cpdef int is_active(self):
return c
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)
--
vit