diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 13:59:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 13:59:12 (GMT) |
commit | 67266266469fe0e817736227f39537182534c1a5 (patch) | |
tree | 1ae99ebf16335cbd67678f3911702e9819cbe039 /Include | |
parent | c163d7f0b67a568e9b64eeb9c1cbbaa127818596 (diff) | |
download | cpython-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.h | 1 |
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); |