[Cython] [cython-users] Re: callback function pointer problem

Robert Bradshaw robertwb at math.washington.edu
Thu Oct 6 09:50:17 CEST 2011

On Wed, Oct 5, 2011 at 3:41 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Robert Bradshaw wrote:
>> On this note, eventually I would like coerce structs (and unions,
>> enums) to auto-generated wrapper classes, visible in the Python module
>> namespace if one declares them as "cpdef struct ..."
> Would these wrapper classes contain a copy of the struct,
> or would they reference the struct? If they reference it,
> there would be issues with the lifetime of the referenced
> data.

They'd contain a copy, which I also think would match expectations
better as well.

- Robert

More information about the cython-devel mailing list