PyDocs

Nav

Data Types

WeakValueDictionary

weakref

class (source)
  • WeakValueDictionary([dict])
Mapping class that references values weakly.

Entries in the dictionary will be discarded when no strong
reference to the value exists anymore
Changed in 3.9
  • 3.9: Added support for | and |= operators, as specified in PEP 584.
Members of WeakValueDictionary

v

valuerefs
Return a list of weak references to the values.
0 Examples
No examples for weakref/WeakValueDictionary.
See Also
No see-alsos for weakref/WeakValueDictionary
0 Notes
No notes for WeakValueDictionary