(self, index)
| 166 | def __delitem__(self, index): |
| 167 | del self.data[index] |
| 168 | def __getitem__(self, index): |
| 169 | if isinstance(index, slice): |
| 170 | return SubPattern(self.state, self.data[index]) |
| 171 | return self.data[index] |
| 172 | def __setitem__(self, index, code): |
| 173 | self.data[index] = code |
| 174 | def insert(self, index, code): |