def __setitem__(self, index, value):
        """For setting values in the list.
        index must be an integer or (extended) slice object. (__setslice__ used for simple slices)
        If index is an integer then value must be a string.
        If index is a slice object then value must be a list of strings - with the same length as the slice object requires.
        """
        if isinstance(index, int):
            if not isinstance(value, str): raise TypeError('Members of this object must be strings. You supplied \"%s\"' % type(value))
            list.__setitem__(self, index, value)
        elif isinstance(index, slice):
            if not hasattr(value, '__len__'): raise TypeError('Value given to set slice is not a sequence object.')
            for entry in value:
                if not isinstance(entry, str): raise TypeError('Members of this object must be strings. You supplied \"%s\"' % type(entry))
            list.__setitem__(self, index, value)
        else:
            raise TypeError('Indexes must be integers or slice objects.')
For setting values in the list.
        index must be an integer or (extended) slice object. (__setslice__ used for simple slices)
        If index is an integer then value must be a string.
        If index is a slice object then value must be a list of strings - with the same length as the slice object requires.
        
recipes/Python/284569_caselessList/recipe-284569.py