[Pyrex] cdef __init__

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Mar 26 23:42:56 UTC 2007


Sam Rushing wrote:

> Right now I'm trying to figure out how to insert code into
> __fast_init_() that initializes any pyobject slots to None.

You'll need to do something similar to what's done by the
function that generates the type's tp_new slot code. That's
where all the behind-the-scenes initialisation goes on
before calling the user's __new__ method.

--
Greg



More information about the Pyrex mailing list