def findkey(self, item):
        """A caseless way of checking if a key exists or not.
        It returns None or the correct key."""
        if not isinstance(item, str): raise TypeError('Keywords for this object must be strings. You supplied %s' % type(item))
        key = item.lower()
        try:
            return self._keydict[key]
        except:
            return None
A caseless way of checking if a key exists or not.
        It returns None or the correct key.
recipes/Python/283455_caselessDict/recipe-283455.py