[docs] [issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

Antoine Pitrou report at bugs.python.org
Thu Oct 11 15:22:12 CEST 2012


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
type:  -> behavior
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16195>
_______________________________________


More information about the docs mailing list