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

Reply via email to