SIGN IN SIGN UP

gh-112087: Make `list.extend(dict)` behave atomically (#117438)

Add a special case for `list.extend(dict)` and `list(dict)` so that those
patterns behave atomically with respect to modifications to the list or
dictionary.

This is required by multiprocessing, which assumes that
`list(_finalizer_registry)` is atomic.
S
Sam Gross committed
027fa2eccf39ddccdf7b416d16601277a7112054
Parent: 954d616
Committed by GitHub <noreply@github.com> on 4/2/2024, 2:45:00 PM