summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 4f4fc9f..f4e635d 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4149,6 +4149,15 @@ copying.
.. versionchanged:: 3.5
The source format is no longer restricted when casting to a byte view.
+ .. method:: index(value, start=0, stop=sys.maxsize, /)
+
+ Return the index of the first occurrence of *value* (at or after
+ index *start* and before index *stop*).
+
+ Raises a :exc:`ValueError` if *value* cannot be found.
+
+ .. versionadded:: next
+
There are also several readonly attributes available:
.. attribute:: obj