Stefan Behnel added the comment:
Just as a quick update here: Cython has since then switched to only using
PyObject_ClearWeakRefs() and otherwise leaves the handling of the weakref slot
to CPython.
--
___
Python tracker rep...@bugs.python.org
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16195
___
___
Python-bugs-list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16195
___
___
Python-bugs-list mailing list
New submission from Jean-Paul Calderone:
There appears to be very little, if any, documentation about how to handle the
list at tp_weaklistoffset for types supporting being weak referenced,
particularly with respect to garbage collection.
Who owns the list? Who owns the objects in the list?
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16195
___
___
Antoine Pitrou added the comment:
I think Cython is wrong here. The only thing to do is to call
PyObject_ClearWeakRefs() in the deallocator. Everything else is handled by the
interpreter.
Agreed improving the documentation would be good.
--
nosy: +pitrou, scoder
stage: - needs patch