def __getitem__(self, lookfor):
        "Overides Dictionary __getitem__ to use fuzzy matching"
        matched, key, item, ratio = self._search(lookfor)

        if not matched:
            raise KeyError(
                "'%s'. closest match: '%s' with ratio %.3f"%
                    (str(lookfor), str(key), ratio))

        return item
Overides Dictionary __getitem__ to use fuzzy matching
recipes/Python/475148_Fuzzy_matching_dictionary/recipe-475148.py