From 66f256d87414a8197a055fa7e0ab5c40a7c26413 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Fri, 5 Sep 2025 09:51:28 +0200 Subject: [PATCH] [3.14] gh-107194: Improved language of list.index in tutorial (gh-138518) (#138527) gh-107194: Improved language of list.index in tutorial (gh-138518) (cherry picked from commit f19f1d8563fb3abbb673812f16e2be5f10af42e4) Co-authored-by: Ric <11750904+ricsatjr@users.noreply.github.com> --- 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 cbe780e075ba..ba47d7ab446b 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -62,7 +62,7 @@ objects: .. method:: list.index(x[, start[, end]]) :noindex: - Return zero-based index in the list of the first item whose value is equal to *x*. + Return zero-based index of the first occurrence of *x* 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 -- 2.47.3