def index(self, key):
        """ Return the index of a given key. """
        try:
            return self.keyOrder.index(key)
        except __HOLE__:
            raise ValueError("Element '%s' was not found in OrderedDict" % key)
dataset/ETHPy150Open dragondjf/QMarkdowner/markdown/odict.py/OrderedDict.index