From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:01:01 +0000 (+0200) Subject: [3.13] gh-107194: Improved language of list.index in tutorial (gh-138518) (#138528) X-Git-Tag: v3.13.8~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb1714016a0708873a431d21796d6c2bd42af051;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-107194: Improved language of list.index in tutorial (gh-138518) (#138528) Co-authored-by: Ric <11750904+ricsatjr@users.noreply.github.com> --- diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 31941bc112a1..db8a066b369a 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