use set cardinality instead of counting elements
implements setting an arbitrary element of a list
Sequences emit IndexError, not KeyError
Replace IndexError with KeyError for lists, for better compatibility.  Limited support for list slices.