Skip to content

gh-152297: Reify dotted lazy imports with the full dotted name#152307

Open
Kuhai9801 wants to merge 1 commit into
python:mainfrom
Kuhai9801:gh-152297-dotted-lazy-import-minimal
Open

gh-152297: Reify dotted lazy imports with the full dotted name#152307
Kuhai9801 wants to merge 1 commit into
python:mainfrom
Kuhai9801:gh-152297-dotted-lazy-import-minimal

Conversation

@Kuhai9801

@Kuhai9801 Kuhai9801 commented Jun 26, 2026

Copy link
Copy Markdown

Fix lazy reification for dotted imports so lazy import pkg.sub calls __import__ with the full dotted name, matching eager import behavior.

The regression tests cover custom __import__ hooks and first-use loading of the dotted target.

Tests:

  • git diff --check
  • GitHub Actions required checks after squash

@python-cla-bot

python-cla-bot Bot commented Jun 26, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@Kuhai9801 Kuhai9801 force-pushed the gh-152297-dotted-lazy-import-minimal branch 3 times, most recently from 85a1a27 to e2f3da0 Compare June 28, 2026 07:35
@Kuhai9801 Kuhai9801 force-pushed the gh-152297-dotted-lazy-import-minimal branch from e2f3da0 to 18ced5b Compare June 28, 2026 08:16
@Kuhai9801 Kuhai9801 marked this pull request as ready for review June 28, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant