summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 13:59:12 (GMT)
committerGitHub <noreply@github.com>2023-08-24 13:59:12 (GMT)
commit67266266469fe0e817736227f39537182534c1a5 (patch)
tree1ae99ebf16335cbd67678f3911702e9819cbe039 /Include
parentc163d7f0b67a568e9b64eeb9c1cbbaa127818596 (diff)
downloadcpython-67266266469fe0e817736227f39537182534c1a5.zip
cpython-67266266469fe0e817736227f39537182534c1a5.tar.gz
cpython-67266266469fe0e817736227f39537182534c1a5.tar.bz2
gh-108314: Add PyDict_ContainsString() function (#108323)
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/dictobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index 470f594..f448809 100644
--- a/Include/cpython/dictobject.h
+++ b/Include/cpython/dictobject.h
@@ -55,6 +55,7 @@ static inline Py_ssize_t PyDict_GET_SIZE(PyObject *op) {
}
#define PyDict_GET_SIZE(op) PyDict_GET_SIZE(_PyObject_CAST(op))
+PyAPI_FUNC(int) PyDict_ContainsString(PyObject *mp, const char *key);
PyAPI_FUNC(int) _PyDict_ContainsId(PyObject *, _Py_Identifier *);
PyAPI_FUNC(PyObject *) _PyDict_NewPresized(Py_ssize_t minused);