From 9351374c86bc9f3409f0c9d842871bcf11ede1bd Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 3 Dec 2026 18:11:05 +0000 Subject: [PATCH] FIX: list.index signature mismatch in tutorial Tutorial docs refer to optional args `start and end` which doesn't match `start[, stop]` in signature above. --- Doc/tutorial/datastructures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 77dd8a6e66d5cc4..752b4fb17e76206 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -64,7 +64,7 @@ of the methods of list objects: Return zero-based index of the first occurrence of *value* in the list. Raises a :exc:`ValueError` if there is no such item. - The optional arguments *start* and *end* are interpreted as in the slice + The optional arguments *start* and *stop* are interpreted as in the slice notation and are used to limit the search to a particular subsequence of the list. The returned index is computed relative to the beginning of the full sequence rather than the *start* argument.