Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-112087: Makelist.extend(dict) behave atomically#117438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
colesbury merged 1 commit intopython:mainfromcolesbury:gh-112087-dict
Apr 2, 2024

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commentedApr 1, 2024
edited
Loading

Add a special case forlist.extend(dict) andlist(dict) so that those patterns behave atomically with respect to modifications to the list or dictionary when the GIL is disabled.

This is required by multiprocessing, which assumes thatlist(_finalizer_registry) is atomic.

Add a special case for `list.extend(dict)` and `list(dict)` so thatthose patterns behave atomically with respect to modifications to thelist or dictionary.This is required by multiprocessing, which assumes that`list(_finalizer_registry)` is atomic.
Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

lgtm.

@colesburycolesbury merged commit027fa2e intopython:mainApr 2, 2024
@colesburycolesbury deleted the gh-112087-dict branchApril 2, 2024 14:45
diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 17, 2024
…17438)Add a special case for `list.extend(dict)` and `list(dict)` so that thosepatterns behave atomically with respect to modifications to the list ordictionary.This is required by multiprocessing, which assumes that`list(_finalizer_registry)` is atomic.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@corona10corona10corona10 approved these changes

@DinoVDinoVAwaiting requested review from DinoV

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@colesbury@corona10

[8]ページ先頭

©2009-2025 Movatter.jp