Skip to content

gh-158140: Resolve lazy submodules independently with custom import hooks - #158815

Draft
pablogsal wants to merge 1 commit into
python:mainfrom
pablogsal:lazy-import-independent-restart
Draft

pablogsal wants to merge 1 commit into
python:mainfrom
pablogsal:lazy-import-independent-restart

Conversation

@pablogsal

@pablogsal pablogsal commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Resolve ordinary packages from the root down, so accessing one lazy submodule doesn't import its siblings. Unresolved placeholders keep the declarations for their package and namespace, while the shared registry keeps the original declarations and selects the matching builtins hook. This keeps the bookkeeping in the import paths; private hook results retain full-path behavior.

@read-the-docs-community

read-the-docs-community Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

@pablogsal
pablogsal force-pushed the lazy-import-independent-restart branch 4 times, most recently from 63a9bca to 200bac8 Compare October 5, 2026 10:08
@ambv
ambv force-pushed the lazy-import-independent-restart branch from 200bac8 to 94b13f3 Compare October 20, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant