def __delitem__(self, elem):
        'Like dict.__delitem__() but does not raise KeyError for missing values.'
        if elem in self:
            dict.__delitem__(self, elem)
Like dict.__delitem__() but does not raise KeyError for missing values.
recipes/Python/577664_Counter_class/recipe-577664.py