summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>2024-12-10 10:12:33 (GMT)
committerGitHub <noreply@github.com>2024-12-10 10:12:33 (GMT)
commit4331832db02ff4a7598dcdd99cae31087173dce0 (patch)
tree1a0b95b73e42dc9bb23babc36130acddabb942cb /Doc
parent050d59bd1765de417bf4ec8b5c3cbdac65695f5e (diff)
downloadcpython-4331832db02ff4a7598dcdd99cae31087173dce0.zip
cpython-4331832db02ff4a7598dcdd99cae31087173dce0.tar.gz
cpython-4331832db02ff4a7598dcdd99cae31087173dce0.tar.bz2
gh-125420: implement `Sequence.count` API on `memoryview` objects (#125443)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index f4e635d..d5f7714 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -4149,7 +4149,13 @@ 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, /)
+ .. method:: count(value, /)
+
+ Count the number of occurrences of *value*.
+
+ .. versionadded:: next
+
+ .. 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*).