Skip to content

bpo-45316: Move private PyDict functions to internal C API #31577

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

Merged
merged 1 commit into from
Feb 25, 2022
Merged

bpo-45316: Move private PyDict functions to internal C API #31577

merged 1 commit into from
Feb 25, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 25, 2022

Move the following private unexported functions to the internal C API
headers:

  • _PyDictKeys_GetVersionForCurrentState()
  • _PyDictKeys_StringLookup()
  • _PyDict_FromKeys()
  • _PyDict_GetItemHint()
  • _PyDict_KeysSize()
  • _PyDict_LoadGlobal()
  • _PyDict_NewKeysForClass()
  • _PyDict_Pop_KnownHash()
  • _PyDict_SetItem_Take2()
  • _PyObjectDict_SetItem()
  • _PyObject_MakeDictFromInstanceAttributes()
  • _Py_dict_lookup()

https://bugs.python.org/issue45316

Move the following private unexported functions to the internal C API
headers:

* _PyDictKeys_GetVersionForCurrentState()
* _PyDictKeys_StringLookup()
* _PyDict_FromKeys()
* _PyDict_GetItemHint()
* _PyDict_KeysSize()
* _PyDict_LoadGlobal()
* _PyDict_NewKeysForClass()
* _PyDict_Pop_KnownHash()
* _PyDict_SetItem_Take2()
* _PyObjectDict_SetItem()
* _PyObject_MakeDictFromInstanceAttributes()
* _Py_dict_lookup()
@vstinner vstinner merged commit 8ddbdd9 into python:main Feb 25, 2022
@vstinner vstinner deleted the pycore_dict branch February 25, 2022 14:41
asvetlov pushed a commit that referenced this pull request Feb 26, 2022
Move the following private unexported functions to the internal C API
headers:

* _PyDictKeys_GetVersionForCurrentState()
* _PyDictKeys_StringLookup()
* _PyDict_FromKeys()
* _PyDict_GetItemHint()
* _PyDict_KeysSize()
* _PyDict_LoadGlobal()
* _PyDict_NewKeysForClass()
* _PyDict_Pop_KnownHash()
* _PyDict_SetItem_Take2()
* _PyObjectDict_SetItem()
* _PyObject_MakeDictFromInstanceAttributes()
* _Py_dict_lookup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants