def __getitem__(self, index):
result = self._bits[index]<EOL>if isinstance(index, slice):<EOL><INDENT>result.flags.writeable = False<EOL>return BitString(result)<EOL><DEDENT>return result<EOL>
Overloads bitstring[index]