[Python-ideas] weakrefs
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri May 18 00:49:05 CEST 2012
Ethan Furman wrote:
> I would like to have the guarantees for weakrefs strengthened such that
> any weakref'ed object that has no strong references left will return
> None instead of the object, even if the object has not yet been garbage
> collected.
Why do you want this guarantee? It would complicate
implementations for which ref counting is not the
native method of managing memory.
--
Greg
More information about the Python-ideas
mailing list