Find the position of an item. Raise ValueError if not found.
(self, item)
| 131 | return item in self._items[i:j] |
| 132 | |
| 133 | def index(self, item): |
| 134 | 'Find the position of an item. Raise ValueError if not found.' |
| 135 | k = self._key(item) |
| 136 | i = bisect_left(self._keys, k) |
| 137 | j = bisect_right(self._keys, k) |
| 138 | return self._items[i:j].index(item) + i |
| 139 | |
| 140 | def count(self, item): |
| 141 | 'Return number of occurrences of item' |
no outgoing calls