◐ Shell
clean mode source ↗

gh-106320: Remove private _PyDict function by vstinner · Pull Request #108449 · python/cpython

Move private _PyDict functions to the internal C API (pycore_dict.h):

* _PyDictView_Intersect()
* _PyDictView_New()
* _PyDict_ContainsId()
* _PyDict_DelItemId()
* _PyDict_DelItem_KnownHash()
* _PyDict_GetItemIdWithError()
* _PyDict_GetItem_KnownHash()
* _PyDict_HasSplitTable()
* _PyDict_NewPresized()
* _PyDict_Next()
* _PyDict_Pop()
* _PyDict_SetItemId()
* _PyDict_SetItem_KnownHash()
* _PyDict_SizeOf()

No longer export most of these functions.

Move also the _PyDictViewObject to the internal C API.

Move dict_getitem_knownhash() function from _testcapi to the
_testinternalcapi extension. Update test_capi.test_dict for this
move.

@vstinner

scoder added a commit to scoder/cpython that referenced this pull request

Oct 24, 2023

scoder added a commit to scoder/cpython that referenced this pull request

Oct 24, 2023

scoder added a commit to scoder/cpython that referenced this pull request

Oct 24, 2023

scoder added a commit to scoder/cpython that referenced this pull request

Oct 24, 2023

This was referenced

Oct 24, 2023

scoder added a commit to scoder/cpython that referenced this pull request

Oct 24, 2023

scoder added a commit to scoder/cpython that referenced this pull request

Oct 24, 2023