Skip to content

gh-115999: Add free-threaded specialization for FOR_ITER - #128798

Merged
Yhg1s merged 15 commits into
python:mainfrom
Yhg1s:for-iter-spec
Mar 12, 2025
Merged

Yhg1s merged 15 commits into
python:mainfrom
Yhg1s:for-iter-spec

Conversation

@Yhg1s

@Yhg1s Yhg1s commented Jan 13, 2025 •

Copy link
Copy Markdown
Member

Add free-threaded versions of existing specialization for FOR_ITER (list, tuples, fast range iterators and generators), without significantly affecting their thread-safety. (Iterating over shared lists/tuples/ranges should be fine like before. Reusing iterators between threads is not fine, like before. Sharing generators between threads is a recipe for significant crashes, like before.)

Loading
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.

5 participants