s.insert(i, x) same as s[i:i] = [x] Raises TypeError if x isn't a string.
(self, i, x)
| 110 | raise ValueError(': list.index(x): x not in list') |
| 111 | |
| 112 | def insert(self, i, x): |
| 113 | """s.insert(i, x) same as s[i:i] = [x] |
| 114 | Raises TypeError if x isn't a string.""" |
| 115 | if not isinstance(x, str): raise TypeError('Members of this object must be strings. You supplied \"%s\"' % type(x)) |
| 116 | list.insert(self, i, x) |
| 117 | |
| 118 | def __setitem__(self, index, value): |
| 119 | """For setting values in the list. |
no outgoing calls
no test coverage detected