'Return the index of a given key.'

def index(self, key):

    try:
        return self.keyOrder.index(key)
    except ValueError:
        raise ValueError((u"Element    '%s'    was    not    found    in    OrderedDict" % key))
