non-owning references?

Peter Otten __peter__ at web.de
Fri Jul 24 08:52:07 EDT 2009


Utpal Sarkar wrote:

> Is there a way I can tell a variable that the object it is pointing
> too is not owned by it, in the sense that if it is the only reference
> to the object it can be garbage collected?

http://docs.python.org/library/weakref.html





More information about the Python-list mailing list