Skip to content

[3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values#150055

Draft
DinoV wants to merge 4 commits into
python:3.15from
DinoV:modules_resolve
Draft

[3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values#150055
DinoV wants to merge 4 commits into
python:3.15from
DinoV:modules_resolve

Conversation

@DinoV
Copy link
Copy Markdown
Contributor

@DinoV DinoV commented May 19, 2026

Instead of publishing the value update _Py_module_getattro_impl to return these values. This is maybe more in the spirit of the changes we've made to push things into the module object in general. We'd publish nothing into the module but it would magically become available if we resolve it and then presumably we'd publish it into the module.

@DinoV DinoV force-pushed the modules_resolve branch from 93b1312 to e757e35 Compare May 19, 2026 05:12
@DinoV DinoV changed the title [3.15] gh-150052: Modules resolve [3.15] gh-150052: Resolve un-loaded lazily loaded submodules via module.__getattr__ instead of publishing lazy values May 19, 2026
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