def __new__(cls, genome, trackName): key = constructKey(genome, trackName) if key in cls._preProcMetaDataStorage: return cls._preProcMetaDataStorage[key] else: obj = object.__new__(cls) cls._preProcMetaDataStorage[key] = obj return obj
def hasKey(cls, genome, trackName): return constructKey(genome, trackName) in cls._preProcMetaDataStorage
def removeEntry(self): del self._preProcMetaDataStorage[constructKey(self._genome, self._trackName)]