summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorYuki Kobayashi <drsuaimqjgar@gmail.com>2024-12-16 13:56:04 (GMT)
committerGitHub <noreply@github.com>2024-12-16 13:56:04 (GMT)
commit52d552cda7614c7aa9f08b680089c630587e747f (patch)
treec788b39f4139b76458b1a7382462eac2a6b704c2 /Doc/c-api
parent0d8e7106c260e96c4604f501165bd106bff51f6b (diff)
downloadcpython-52d552cda7614c7aa9f08b680089c630587e747f.zip
cpython-52d552cda7614c7aa9f08b680089c630587e747f.tar.gz
cpython-52d552cda7614c7aa9f08b680089c630587e747f.tar.bz2
gh-127896: Add missing documentation of `PySequence_In` (GH-127979)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/sequence.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/c-api/sequence.rst b/Doc/c-api/sequence.rst
index ce28839..df5bf6b 100644
--- a/Doc/c-api/sequence.rst
+++ b/Doc/c-api/sequence.rst
@@ -105,6 +105,15 @@ Sequence Protocol
equivalent to the Python expression ``value in o``.
+.. c:function:: int PySequence_In(PyObject *o, PyObject *value)
+
+ Alias for :c:func:`PySequence_Contains`.
+
+ .. deprecated:: 3.14
+ The function is :term:`soft deprecated` and should no longer be used to
+ write new code.
+
+
.. c:function:: Py_ssize_t PySequence_Index(PyObject *o, PyObject *value)
Return the first index *i* for which ``o[i] == value``. On error, return