[issue14954] weakref doc clarification

Ethan Furman report at bugs.python.org
Wed Jun 27 17:15:33 CEST 2012


Ethan Furman <ethan at stoneleaf.us> added the comment:

Changed "... will return the object ..." to " ... may return the object ..."

For reference, here's the new text:

A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references,
:term:`garbage collection` is free to destroy the referent and reuse its memory for something else.  However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it.

----------
Added file: http://bugs.python.org/file26179/weakref_doc_updates_v2.diff

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


More information about the Python-bugs-list mailing list