Re: [Cython] Auto-generation of wrapper types

2020-03-15 Thread Stefan Behnel
da-woods schrieb am 12.03.20 um 16:11: > The process of wrapping a C struct or C++ class in an extension type often > has the user doing a pretty mechanical duplication of attributes/functions > that Cython already knows about. I'm looking at doing: > > cdef struct S: >     int a >     # etc. > >

Re: [Cython] Auto-generation of wrapper types

2020-03-15 Thread da-woods
On 15/03/2020 08:14, Stefan Behnel wrote: What makes C structs and C++ classes special enough to make this a separate language feature? That should be part of a motivation somewhere (probably in a ticket Most of the other major things you could want to wrap are covered through other mechanisms