[New-bugs-announce] [issue21989] Missing (optional) argument `start` and `end` in documentation for list.index

SylvainDe report at bugs.python.org
Wed Jul 16 14:40:19 CEST 2014

New submission from SylvainDe:

>From :

https://docs.python.org/2/tutorial/datastructures.html and
https://docs.python.org/3.4/tutorial/datastructures.html (and all other versions) :


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

>From `help(list)` :

 |  index(...)
 |      L.index(value, [start, [stop]]) -> integer -- return first index of value.
 |      Raises ValueError if the value is not present.

Thus, second and third parameter are undocumented.

assignee: docs at python
components: Documentation
files: list_index_start_end.patch
keywords: patch
messages: 223195
nosy: SylvainDe, docs at python
priority: normal
severity: normal
status: open
title: Missing (optional) argument `start` and `end` in documentation for list.index
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35967/list_index_start_end.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list