Skip to content

gh-151510: Fix __lazy_import__ without frame#151511

Open
aisk wants to merge 4 commits into
python:mainfrom
aisk:fix-lazy-import-no-frame
Open

gh-151510: Fix __lazy_import__ without frame#151511
aisk wants to merge 4 commits into
python:mainfrom
aisk:fix-lazy-import-no-frame

Conversation

@aisk

@aisk aisk commented Jun 15, 2026

Copy link
Copy Markdown
Member

I did not add a test because the fix is a straightforward, and exercising this would require extra _testcapi scaffolding to call __lazy_import__ without a Python frame.

Test added.

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we test this?

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

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.

2 participants