This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ChrisRands
Recipients ChrisRands, docs@python
Date 2016-11-02.09:32:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478079143.84.0.85838744414.issue28587@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3 and 2 docs https://docs.python.org/3.5/tutorial/datastructures.html, list.index only mentions the first argument:


list.index(x)

    Return the index in the list of the first item whose value is x. It is an error if there is no such item.

However, in reality list.index can take further arguments:

index(...)
    L.index(value, [start, [stop]]) -> integer -- return first index of value.
    Raises ValueError if the value is not present.
History
Date User Action Args
2016-11-02 09:32:23ChrisRandssetrecipients: + ChrisRands, docs@python
2016-11-02 09:32:23ChrisRandssetmessageid: <1478079143.84.0.85838744414.issue28587@psf.upfronthosting.co.za>
2016-11-02 09:32:23ChrisRandslinkissue28587 messages
2016-11-02 09:32:23ChrisRandscreate