[issue14631] Instance methods and WeakRefs don't mix.

Antoine Pitrou report at bugs.python.org
Mon Nov 12 22:34:38 CET 2012


Antoine Pitrou added the comment:

> What does inheriting from 'ref' buy you?

Hmm, I'm not sure. I thought I'd mimick KeyedRef's inheritance design, plus isinstance(..., weakref.ref) works, and composition would make the object slightly bigger. Other than that, probably nothing.

----------

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


More information about the Python-bugs-list mailing list