gh-125245: Fix race condition when importing `collections.abc` (#125415)
If multiple threads concurrently imported `collections.abc`, some of the threads might incorrectly see the "shim" `Lib/collections/abc.py` module instead of the correct `Lib/_collections_abc.py` module. This affected both the free threading build and the default GIL-enabled build.
S
Sam Gross committed
fed501d7247053ce46a2ba512bf0e4bb4f483be6
Parent: 332356b
Committed by GitHub <noreply@github.com>
on 10/24/2024, 10:12:51 PM