-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-106320: Remove private _PyDict function #108449
Conversation
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 In this PR the method I am using the method in an extension module #91610, but the build is failing since this PR was merged with error message I added the correct header file |
If you want to use this function in a stdlib extension, you should replace |
…have been public right away. See python#108449
…have been public right away. See python#108449
…have been public right away. See python#108449
…have been public right away. See python#108449
…have been public right away. See python#108449
…have been public right away. See python#108449
Move private _PyDict functions to the internal C API (pycore_dict.h):
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.