2009/5/20 Stéfan van der Walt <[email protected]>:
> Hi Lisando
>
> 2009/5/20 Lisandro Dalcin <[email protected]>:
>> You can use @staticmethod/@classmethod decorators. But IIRC this only
>> work for normal 'def' methods, not for 'cdef' ones.
>
> Thanks for replying.
>
> Here's my problem: I have to store a large number of data objects (>
> 250,000).  My current plan is to have a minimal data class (to save
> memory), on which I can call several classmethod operators in rapid
> succession.  As is, I can simply define all those "classmethods"
> outside a class structure, but I thought it would be more elegant to
> have them combined under one roof.

I also like your approach and agree on your rationale, but the problem
is that Cython does not currently support cdef
staticmethod/classmethod's :-)

-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to