index is meant to return the index of the first match it finds in the list from 
the beginning, it's most simpless implementation is:
```
for i, v in enumerate(self):
    if v == value:
        return i

throw ValueError(f"Value '{value}' is not in list")
````

if you want the negative index, just subtract the list's length from the 
returned index:
```
res = listy.index(10) - len(listy)
```
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/VEU3PS3PGWSONYYPGTYMQZT3MP4GZFHI/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to