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.
This commit is contained in:
Victor Stinner 2023-07-21 23:10:51 +02:00 committed by GitHub
parent 0ba07b2108
commit 41ca164551
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 308 additions and 18 deletions

2
PC/python3dll.c generated
View file

@ -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)