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

Stefan Behnel stefan_ml at behnel.de
Sun Jan 13 18:55:26 CET 2008


Stefan Behnel wrote:
> 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?

Found it myself.

(complete patch and bundle attached)

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cython-parent-gc-functions.patch
Type: text/x-patch
Size: 1303 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20080113/c24f8e2f/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cython-parent-gc-functions.bundle
Type: application/octet-stream
Size: 9426 bytes
Desc: not available
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20080113/c24f8e2f/attachment.obj 


More information about the Pyrex mailing list