'Implemented so that accesses to ``sequence`` raise a warning and are
diverted to the new ``setkeys`` method.'

def __setattr__(self, name, value):

    if (name == 'sequence'):
        warnings.warn('Use    of    the    sequence    attribute    is    deprecated.    Use    the    keys    method    instead.', DeprecationWarning)
        self.setkeys(value)
    else:
        object.__setattr__(self, name, value)
