def get(self, key, alt=None):
        """If dictionary contains _key_ return the associated value,
        otherwise return _alt_.
        """
        with self.lock:
            if key in self:
                return self.getitem(key)

            else:
                return alt