Standard list index method
(self, val)
| 178 | return count |
| 179 | |
| 180 | def index(self, val): |
| 181 | "Standard list index method" |
| 182 | for i in range(0, len(self)): |
| 183 | if self[i] == val: |
| 184 | return i |
| 185 | raise ValueError("%s not found in object" % val) |
| 186 | |
| 187 | # ## Mutating ## |
| 188 | def append(self, val): |