def setdefault(self, key, default):
        """If 'key' doesn't exists, associate it with the 'default' value.
        Return value associated with 'key'."""
        if not self.has_key(key):
            self[key] = default
        return self[key]
If 'key' doesn't exists, associate it with the 'default' value.
        Return value associated with 'key'.
recipes/Python/66315_Caseinsensitive_Dictionary/recipe-66315.py