Re: Cyclic GC rules for subtyped objects with tp_dictoffset

2009-03-31 Thread BChess
On Mar 31, 12:27 am, Hrvoje Niksic wrote: > [ Questions such as this might be better suited for the capi-sig list, >  http://mail.python.org/mailman/listinfo/capi-sig] > > BChess writes: > > I'm writing a new PyTypeObject that is base type, supports cyclic > > GC, an

Cyclic GC rules for subtyped objects with tp_dictoffset

2009-03-30 Thread BChess
Hi, I'm writing a new PyTypeObject that is base type, supports cyclic GC, and has a tp_dictoffset. If my type is sub-typed by a python class, what exactly are the rules for how I'm supposed to treat my PyDict object with regards to cyclic GC? Do I still visit it in my traverse () function if I'm