def __hash__(self):
        return (hash(self.flat_path) +
                hash(self.project) +
                hash(self.namespace))
Hash a keys for use in a dictionary lookp.
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/datastore/key.py/Key.__hash__