def __getitem__(self, key): item = dict.__getitem__(self, key) item.timestamp = compat.time_func() return item.value
def __init__(self, key, value): self.key = key self.value = value self.timestamp = compat.time_func()