[issue16602] weakref can return an object with 0 refcount

Antoine Pitrou report at bugs.python.org
Tue Dec 4 11:34:34 CET 2012


Antoine Pitrou added the comment:

The easy fix would probably be to return Py_None when the weakref'ed object has a zero refcount.

----------

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


More information about the Python-bugs-list mailing list