cpython/Lib/importlib
Miss Islington (bot) 7b91b9001a
[3.12] gh-114763: Protect lazy loading modules from attribute access races (GH-114781) (GH-115870)
gh-114763: Protect lazy loading modules from attribute access races (GH-114781)

Setting the __class__ attribute of a lazy-loading module to ModuleType enables other threads to attempt to access attributes before the loading is complete. Now that is protected by a lock.
(cherry picked from commit 200271c61d)

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
2024-02-26 20:43:44 +00:00
..
metadata
resources [3.12] Add missed stream argument (GH-111775) (#115716) 2024-02-20 11:36:55 -05:00
__init__.py
_abc.py
_bootstrap.py
_bootstrap_external.py
abc.py
machinery.py
readers.py
simple.py
util.py [3.12] gh-114763: Protect lazy loading modules from attribute access races (GH-114781) (GH-115870) 2024-02-26 20:43:44 +00:00