https://github.com/python/cpython/commit/f19f1d8563fb3abbb673812f16e2be5f10af42e4
commit: f19f1d8563fb3abbb673812f16e2be5f10af42e4
branch: main
author: Ric <[email protected]>
committer: corona10 <[email protected]>
date: 2025-09-05T15:16:04+08:00
summary:
gh-107194: Improved language of list.index in tutorial (gh-138518)
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]