You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted in #3611 (comment), heap types need to implement the GC protocol, tp_traverse and tp_clear. When the CYTHON_USE_TYPE_SPECS option is set, this applies to all extension types.
I'm going to do this once #5846 is merged. It's slightly simpler than I was giving it credit for - only tp_traverse needs to handle type(self) (not tp_clean) and I think Python does the right thing for classes that only need to handle type(self). The only complication is that it's version dependent.
As noted in #3611 (comment), heap types need to implement the GC protocol,
tp_traverse
andtp_clear
. When theCYTHON_USE_TYPE_SPECS
option is set, this applies to all extension types.See https://bugs.python.org/issue42972
The text was updated successfully, but these errors were encountered: