euporie.core.comm.base.WeakKeyDictionary

class euporie.core.comm.base.WeakKeyDictionary(dict=None)

Mapping class that references keys weakly.

Entries in the dictionary will be discarded when there is no longer a strong reference to the key. This can be used to associate additional data with an object owned by other parts of an application without adding attributes to those objects. This can be especially useful with objects that override attribute accesses.