summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-07-21 21:10:51 (GMT)
committerGitHub <noreply@github.com>2023-07-21 21:10:51 (GMT)
commit41ca16455188db806bfc7037058e8ecff2755e6c (patch)
tree925ab5df83f04657ea3b4be058c104556b094424 /PC
parent0ba07b2108d4763273f3fb85544dde34c5acd40a (diff)
downloadcpython-41ca16455188db806bfc7037058e8ecff2755e6c.zip
cpython-41ca16455188db806bfc7037058e8ecff2755e6c.tar.gz
cpython-41ca16455188db806bfc7037058e8ecff2755e6c.tar.bz2
gh-106004: Add PyDict_GetItemRef() function (#106005)
* Add PyDict_GetItemRef() and PyDict_GetItemStringRef() functions. Add these functions to the stable ABI version 3.13. * Add unit tests on the PyDict C API in test_capi.
Diffstat (limited to 'PC')
-rwxr-xr-xPC/python3dll.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/PC/python3dll.c b/PC/python3dll.c
index 0b54c5a..64dfbba 100755
--- a/PC/python3dll.c
+++ b/PC/python3dll.c
@@ -172,7 +172,9 @@ EXPORT_FUNC(PyDict_Copy)
EXPORT_FUNC(PyDict_DelItem)
EXPORT_FUNC(PyDict_DelItemString)
EXPORT_FUNC(PyDict_GetItem)
+EXPORT_FUNC(PyDict_GetItemRef)
EXPORT_FUNC(PyDict_GetItemString)
+EXPORT_FUNC(PyDict_GetItemStringRef)
EXPORT_FUNC(PyDict_GetItemWithError)
EXPORT_FUNC(PyDict_Items)
EXPORT_FUNC(PyDict_Keys)