https://github.com/python/cpython/commit/66f256d87414a8197a055fa7e0ab5c40a7c26413
commit: 66f256d87414a8197a055fa7e0ab5c40a7c26413
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2025-09-05T10:51:28+03:00
summary:

[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 <[email protected]>

files:
M Doc/tutorial/datastructures.rst

diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index cbe780e075baf5..ba47d7ab446bc9 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to