On Wed, Oct 5, 2011 at 3:41 PM, Greg Ewing <greg.ew...@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 _______________________________________________ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel