https://github.com/python/cpython
Revision 027fa2eccf39ddccdf7b416d16601277a7112054 authored by Sam Gross on 02 April 2024, 14:45:00 UTC, committed by GitHub on 02 April 2024, 14:45:00 UTC
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.
1 parent 954d616
Raw File
Tip revision: 027fa2eccf39ddccdf7b416d16601277a7112054 authored by Sam Gross on 02 April 2024, 14:45:00 UTC
gh-112087: Make `list.extend(dict)` behave atomically (#117438)
Tip revision: 027fa2e
__hello__.py
initialized = True

class TestFrozenUtf8_1:
    """\u00b6"""

class TestFrozenUtf8_2:
    """\u03c0"""

class TestFrozenUtf8_4:
    """\U0001f600"""

def main():
    print("Hello world!")

if __name__ == '__main__':
    main()
back to top