PyMOTW: weakref

The weakref module lets you refer to an object without preventing it from being garbage collected.

Read more at pymotw.com: weakref