[Pyrex] C-level constructors

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Nov 7 23:38:56 CET 2007


David McNab wrote:
> Is there any way to implement an extension type's constructor so that it
> can be called with C data types

Currently, the only way is to smuggle them in wrapped
in PyCObjects, or do as you have done and pass them
in a separate call after instantiation.

I'm thinking about ways to do this more efficiently,
but it's not easy -- there are various thorny problems
that arise when you try to bypass the normal class
instantiation mechanisms.

--
Greg



More information about the Pyrex mailing list