[issue16602] weakref can return an object with 0 refcount

Eugene Toder report at bugs.python.org
Sat Dec 8 21:53:21 CET 2012


Eugene Toder added the comment:

> People should simply avoid doing this kind of thing, as it's knowingly fragile, and trivial to avoid anyway.
Is this documented in the C API guide, or somewhere else?
In any case, notifying people so they can quickly check their code seems much nicer than having them figure this out the hard way.

----------

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


More information about the Python-bugs-list mailing list