Package lepl :: Package support :: Module state :: Class State
[hide private]
[frames] | no frames]

Class State

source code


A thread local map from key (typically calling class) to value. The hash attribute is updated on each mutation and cached for rapid access.
Instance Methods [hide private]
 
__init__(self)
Do not call directly - use the singleton.
source code
 
__hash(self)
Calculate the hash for the current dict.
source code
 
__getitem__(self, key) source code
 
get(self, key, default=None)
As for dict (lookup with default).
source code
 
__setitem__(self, key, value) source code
 
__delitem__(self, key) source code
 
__hash__(self) source code
Class Methods [hide private]
 
singleton(cls)
Get a singleton instance.
source code