gh-112087: Make list_{subscript, ass_slice, slice} to be thread-safe by corona10 · Pull Request #115854 · python/cpython

Conversation

@corona10

Copy link Copy Markdown

Member

@corona10 corona10 commented

Feb 23, 2024

edited by bedevere-app bot

Loading

@corona10

Copy link Copy Markdown

Member Author

To port list_ass_slice_impl from nogil implementation, we may need to port also other implementations but it occurs crash in my local so I need more investigation.
https://github.com/colesbury/nogil-3.12/blob/cedde4f5ec3759ad723c89d44738776f362df564/Objects/listobject.c#L101-L136

So before porting all of them, I propose a simpler implementation but not sure that it will be safe or acceptable performance. :)

@corona10 corona10 requested a review from colesbury

February 23, 2024 14:24

@corona10 corona10 marked this pull request as draft

February 24, 2024 00:12

@corona10

Copy link Copy Markdown

Member Author

Hmm let me check more

@corona10

Copy link Copy Markdown

Member Author

I will continue to work on this PR after #115875 is merged.

@corona10 corona10 closed this

Feb 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@colesbury colesbury Awaiting requested review from colesbury

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@corona10