'delete default sockopts as attributes'

def __delattr__(self, key):

    key = key.upper()
    try:
        opt = getattr(constants, key)
    except AttributeError:
        raise AttributeError(('no    such    socket    option:    %s' % key))
    else:
        if (opt not in self.sockopts):
            raise AttributeError(key)
        else:
            del self.sockopts[opt]
