

def handler_for(self, keys):
    '\n        Retrieve the handler for the given keys if complete.\n\n        Otherwise, stores the partial key input for a successive call.\n\n        '
    (handler, mapping) = self._contents
    for key in (self._pending_keys + keys):
        if (key not in mapping):
            return self.clear()
        (handler, mapping) = mapping[key]
    if mapping:
        self._pending_keys += keys
        return
    self.clear()
    return handler

dataset/ETHPy150Open Julian/PyVi/pyvi/mode.py _Map.handler_for/original