[Python-Dev] doc change for weakref (original) (raw)

Ethan Furman ethan at stoneleaf.us
Fri May 25 19:21:39 CEST 2012


I'd like to make a slight doc change for weakref to state (more or less):

weakrefs are not invalidated when the strong refs
are gone, but rather when garbage collection
reclaims the object

Should this be accurate for all implementations, or should it be more along the lines of:

weakrefs may be invalidated as soon as the strong refs
are gone, but may last until garbage collection reclaims
the object

Ethan



More information about the Python-Dev mailing list