[docs] [issue28587] list.index documentation missing start and stop arguments

ChrisRands report at bugs.python.org
Wed Nov 2 05:32:23 EDT 2016


New submission from ChrisRands:

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.

----------
assignee: docs at python
components: Documentation
messages: 279913
nosy: ChrisRands, docs at python
priority: normal
severity: normal
status: open
title: list.index documentation missing start and stop arguments

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28587>
_______________________________________


More information about the docs mailing list