Tim Peters <t...@python.org> added the comment:

Neil, how about this alternative:  leave the weakref implementation alone.  If 
we find a trash weakref, simply clear it instead.  That would prevent callbacks 
too, & would also prevent the weakref from being used to retrieve its 
possibly-trash-too referent.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38006>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to