[Python-Dev] Re: [Python-checkins] python/dist/src/Objectslistobject.c,2.153,2.154
Guido van Rossum
guido@python.org
Tue, 17 Jun 2003 10:44:47 -0400
> While overall I think the idea is worthwhile, I have two concerns:
> * the doc wasn't updated
Beta 2 hasn't been released yet; Raymond still has time to fix this.
> * 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
Do a CVS up and try again. ;-)
--Guido van Rossum (home page: http://www.python.org/~guido/)