[Cython] cython doesn't compile cdef'd variables of type set?

Lisandro Dalcin dalcinl at gmail.com
Wed Oct 1 22:10:05 CEST 2008


On Wed, Oct 1, 2008 at 4:41 PM, Thomas Keller <thomas.e.keller at gmail.com> wrote:
> Thanks much for the reply. I realized after the email I provided absolutely no
> information about my build. I was using Cython from within SAGE 3.1.1, so I
> believe it's not as updated as what is in cython-devel. I'll try that repo and
> see how things go.

Yep, the suport for your request was pushed a couple of days ago, so
it not availabe even in the latest official release.

BTW, access to the 'set' methods is not currently optimized in any
way. If you can help me a bit, we can optimize this, ie. map
'someset.add(obj)' to a direct Python C-API call. If you make a heavy
use of sets this could give you some speedup.


-- 
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


More information about the Cython-dev mailing list