diff options
author | Sam Gross <colesbury@gmail.com> | 2025-02-18 18:02:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-18 18:02:42 -0500 |
commit | 857bdba0ac66ed7963e9fca45ab1a5f7a32b4bfb (patch) | |
tree | 2afdcdf8b7928992c726b892a40f900f0a4a40f6 /Objects/tupleobject.c | |
parent | 8207454bc00db8efa0e05c93381ecc8e3efc86a7 (diff) | |
download | cpython-857bdba0ac66ed7963e9fca45ab1a5f7a32b4bfb.tar.gz cpython-857bdba0ac66ed7963e9fca45ab1a5f7a32b4bfb.zip |
gh-130094: Fix race conditions in `importlib` (gh-130101)
Entries may be added or removed from `sys.meta_path` concurrently. For
example, setuptools temporarily adds and removes the `distutils` finder from
the beginning of the list. The local copy ensures that we don't skip over any
entries.
Some packages modify `sys.modules` during import. For example, `collections`
inserts the entry for `collections.abc` into `sys.modules` during import. We
need to ensure that we re-check `sys.modules` *after* the parent module is
fully initialized.
Diffstat (limited to 'Objects/tupleobject.c')
0 files changed, 0 insertions, 0 deletions