pyrsistent
pyrsistent copied to clipboard
Replace _PyList_Extend with PyList_SetSlice
This private function is no longer exported in Python 3.13.
It is possible that a PyList_Extend()
function-like macro may be added before Python 3.13 final, but using PyList_SetSlice()
directly will still work.
See also:
https://github.com/python/cpython/pull/108451
https://github.com/python/cpython/issues/111138
After this PR, pyrsistent
builds and the tests pass on Python 3.13.0a1.