Skip to content

Replace _PyList_Extend with PyList_SetSlice - #284

Merged
tobgu merged 1 commit into
tobgu:masterfrom
musicinmybrain:python3.13
Feb 23, 2025
Merged

Replace _PyList_Extend with PyList_SetSlice#284
tobgu merged 1 commit into
tobgu:masterfrom
musicinmybrain:python3.13

Conversation

@musicinmybrain

Copy link
Copy Markdown
Contributor

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:

python/cpython#108451

python/cpython#111138

After this PR, pyrsistent builds and the tests pass on Python 3.13.0a1.

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.

python/cpython#108451

python/cpython#111138
@tobgu

tobgu commented Feb 23, 2025

Copy link
Copy Markdown
Owner

Thanks! Sorry for taking so long to review it...

@tobgu
tobgu merged commit bea5785 into tobgu:master Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants