Walter Dörwald wrote: > Neal Norwitz wrote: > >> Moving to python-dev. >> >> [...] >> While overall I think the idea is worthwhile, I have two concerns: >> * the doc wasn't updated >> * negative indices are handled differently: >> >> >>> 'abc'.split().index('a', -3) >> Traceback (most recent call last): >> File "<stdin>", line 1, in ? >> ValueError: list.index(x): x not in list >> >>> 'abc'.index('a', -3) >> 0 >> >> Neal > > I'm working on a fix for this. Guido was faster! ;) The documentation doesn't have to be fixed, because it states that index() works like find(), which it does now. Bye, Walter Dörwald
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4