Skip to content
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

Merged
merged 2 commits into from
Aug 24, 2023
Merged

Commits on Aug 24, 2023

  1. pythongh-106320: Remove private _PyDict function

    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 committed Aug 24, 2023
    Configuration menu
    Copy the full SHA
    e69215f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    814f867 View commit details
    Browse the repository at this point in the history