GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — gh-158597: Resolve lazy submodules with the declaration in scope by xv1rcn · Pull Request #159476 · python/cpython Conversationgh-158597: Resolve lazy submodules with the declaration in scope
pending["xml"]["missing"] =
Measured before the change (main at 64018ac, debug build):
This keys the declarations by the declaring module and selects one at access time from the frame's globals, so a name resolves with the declaration in scope where the access is written: pending["xml"]["missing"] == {"A": , "B": } # declarations pending["xml"]["dom"] == None # pending, no declaration A declaration made by another module still names the same child and imports the same thing, so it is still used when there is nothing in scope. It is not reported as a frame of the accessing module's traceback: One visible change beyond the reported case: Remaining gaps:
Testing
AI assistance was used to locate the cause and to draft the change and the tests. I have reviewed the analysis and the patch and can explain every part of the diff.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
xv1rcn
requested review from
DinoV,
FFY00,
Yhg1s,
brettcannon,
ericsnowcurrently,
kumaraditya303,
ncoghlan,
pablogsal and
warsaw
as code owners
|
There was an error while loading. Please reload this page.
|
I'm closing this per our AI policy. Please don't open more PRs without achieving first consensus in the issue on the approach |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.