[Pyrex] [Cython-dev] fix for tp_clear()

Stefan Behnel stefan_ml at behnel.de
Sun Jan 13 18:28:15 CET 2008


Hi,

while I was at it, here is a patch that diverts the tp_clear/tp_traverse type
function pointers to the parent type if the type itself does not have any
object attributes.

It's a bit clumsy in that it decides the availability of the parent functions
based on the module name. What would be a better way to find out if the parent
type was defined in the same scope?

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cython-parent-gc-functions.patch
Type: text/x-patch
Size: 1279 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20080113/0c86178b/attachment.bin 


More information about the Pyrex mailing list