

def key(self, o):
    'Gets key for an object.\n\n        @param o: the object.\n        '
    if (o is None):
        return 'null'
    key = self._objectKeyMap.get(o)
    if (key is not None):
        return key
    self._lastKey += 1
    key = str(self._lastKey)
    self._objectKeyMap[o] = key
    self._keyObjectMap[key] = o
    return key

dataset/ETHPy150Open rwl/muntjac/muntjac/terminal/key_mapper.py KeyMapper.key/original