In brief
A weak reference alone does not keep an object alive. weakref helps supporting structures observe objects without determining their lifetime.
Useful to know
A weak reference alone does not keep an object alive. weakref helps supporting structures observe objects without determining their lifetime. [1]
When using a reference, check whether its target still exists. Not every Python type supports weak references in the same way. This is a decision about ownership, not simply a faster alternative to an ordinary dictionary.
Sources
For further detail and to check the information: