def index(self, value):
<EOL>for idx, val in enumerate(self):<EOL><INDENT>if value == val:<EOL><INDENT>return idx<EOL><DEDENT><DEDENT>raise ValueError('<STR_LIT>'.format(value))<EOL>
Return index of *value* in self.

Raises ValueError if *value* is not found.