def setdefault(self,key,val):
        '''Reimplement setdefault to call our customized __setitem__.'''
        if key not in self:
            self[key] = val
        return self[key]
Reimplement setdefault to call our customized __setitem__.
recipes/Python/117228_Priority_dictionary/recipe-117228.py