[Python-3000] weakrefs of bound methods

Nick Craig-Wood nick at craig-wood.com
Sun Feb 17 10:33:18 CET 2008


Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>  Guido van Rossum wrote:
> > But maybe given how rare the use case is, it would be easier to just
> > create a custom class in weakref.py that does what Nick requested.
> 
>  Nick would still forget to use it and get strange bugs
>  in his code, though!

More than likely ;-)  Though an exception if I tried to add a bound
method to a weak dictionary would certainly remind me!

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick


More information about the Python-3000 mailing list