Greg, this approach does not seems to work, at least in Cython:

ctypedef public api class Status [....]:
                   ^
------------------------------------------------------------

./mpi4py/MPI.pxd:49:20: Syntax error in ctypedef statement





On 6/20/08, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Lisandro Dalcin wrote:
>
>  > Could the generated code be changed to say like this ??:
>  >
>  > typedef struct PyFooObject {
>  >   PyObject_HEAD
>  >   int bar;
>  > } PyFooObject;
>
>
> You should be able to get that already by using 'ctypedef'
>  instead of 'cdef', i.e.
>
>  ctypedef public api class Foo [type PyFoo_Type, object PyFooObject]:
>    ...
>
>  --
>
> Greg
>
> _______________________________________________
>  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