FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-125420: implement `Sequence.index` API on `memoryview` objects by picnixz · Pull Request #125446 · python/cpython · GitHub

Repository navigation

Prev Previous commit
Next Next commit
docs
  • Loading branch information
picnixz committed Oct 14, 2024
commit a06692430ec2592c6eb1df6b217d4ea9cbeb378c
9 changes: 9 additions & 0 deletions Doc/library/stdtypes.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -4140,6 +4140,15 @@ copying.
.. versionchanged:: 3.5
The source format is no longer restricted when casting to a byte view.

.. method:: count(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:: 3.14

There are also several readonly attributes available:

.. attribute:: obj
Expand Down

Back | FazBrowse Home | New Git URL