On Thu, Dec 28, 2017, at 03:29, Erik Bray wrote:
> On Tue, Dec 26, 2017 at 3:00 PM, Benjamin Peterson <benjamin at python.org> wrote:
> > I imagine Cython already takes care of this?
>> This appears to have a distinct purpose, albeit not unrelated to
> Cython. The OP's program would generate boilerplate C code for
> extension types the rest of which would perhaps be implemented by hand
> in C. Cython does this as well to an extent, but the generated code
> contains quite a bit of Cython-specific cruft and is not really meant
> to be edited by hand or read by humans in most cases.
It still seems the OP is likely to reinvent a lot of Cython. One option is to write a bunch of "pure" .c and then only have the Python bindings in Cython.
>> Anyways I don't think this answers the OP's question.
I think this belongs on python-list anyway.