diff options
author | Sam Gross <colesbury@gmail.com> | 2024-10-24 22:12:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 22:12:51 (GMT) |
commit | fed501d7247053ce46a2ba512bf0e4bb4f483be6 (patch) | |
tree | 11005e6c0fd2af498b0eb019b26809aea672c2f9 /Misc/NEWS.d/next | |
parent | 332356b880576a1a00b5dc34f03d7d3995dd4512 (diff) | |
download | cpython-fed501d7247053ce46a2ba512bf0e4bb4f483be6.zip cpython-fed501d7247053ce46a2ba512bf0e4bb4f483be6.tar.gz cpython-fed501d7247053ce46a2ba512bf0e4bb4f483be6.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-10-11-00-40-13.gh-issue-125245.8vReM-.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-11-00-40-13.gh-issue-125245.8vReM-.rst b/Misc/NEWS.d/next/Library/2024-10-11-00-40-13.gh-issue-125245.8vReM-.rst new file mode 100644 index 0000000..c880efe --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-10-11-00-40-13.gh-issue-125245.8vReM-.rst @@ -0,0 +1,2 @@ +Fix race condition when importing :mod:`collections.abc`, which could +incorrectly return an empty module. |