def __getitem__(self, key):
if isinstance(key, slice):<EOL><INDENT>return self.__class__(self._collection[key])<EOL><DEDENT>else:<EOL><INDENT>return self._collection[key]<EOL><DEDENT>
Returns a string at the given index.