FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-114763: Protect lazy loading modules from attribute access races (GH-114781) by miss-islington · Pull Request #115871 · python/cpython · GitHub

/ cpython Public

[3.11] gh-114763: Protect lazy loading modules from attribute access races (GH-114781) - #115871

Merged
brettcannon merged 2 commits into
python:3.11from
miss-islington:backport-200271c-3.11
Feb 26, 2024
Merged

[3.11] gh-114763: Protect lazy loading modules from attribute access races (GH-114781)#115871
brettcannon merged 2 commits into
python:3.11from
miss-islington:backport-200271c-3.11

Conversation

miss-islington commented Feb 24, 2024
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

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 200271c)

Co-authored-by: Chris Markiewicz effigies@gmail.com

…aces (pythonGH-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 200271c)

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
brettcannon merged commit 46f821d into python:3.11 Feb 26, 2024
miss-islington deleted the backport-200271c-3.11 branch January 2, 2026 17:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL