Do you also have a 'cdef class plugData' defined somewhere ?

On 5/12/08, Johannes Wienke <[EMAIL PROTECTED]> wrote:
> Hi again,
>
>  maybe I'm blind or I don't know but how do I assign a value to a struct
>  member?
>
>  This code:
>  cdef plugData *data = <plugData*>malloc(sizeof(plugData))
>  data.ident = "foo"
>
>  with this definition of plugData:
>  ctypedef struct plugData:
>         plugDefinition *plug
>         char *ident
>         void *data
>
>  generates an error:
>  "Object of type 'plugData' has no attribute 'ident'"
>
>  What's wrong with this?
>
>  Thanks
>
> Johannes
>
>
> _______________________________________________
>  Cython-dev mailing list
>  [email protected]
>  http://codespeak.net/mailman/listinfo/cython-dev
>
>
>


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