Closed as not planned
Description
Feature or enhancement
The _PySet_NextEntry()
function was removed in Python 3.13 alpha 1, but it's used by the Blender project: https://projects.blender.org/blender/blender/search?q=_PySet_NextEntry
I propose adding a new function to replace it:
int PySet_NextEntry(PyObject *set, Py_ssize_t *pos, PyObject **key)
- Set
*key
to a strong reference, and return 1 on success. - Return 0 if there is no more item.
- Set an exception and return -1 on error.
Differences with _PySet_NextEntry()
:
- key is set to a strong reference, rather than a borrowed reference.
- Remove the hash parameter.