Skip to content

Add test for non-module-level eager import #149372

@ByteFlowing1337

Description

@ByteFlowing1337

Feature or enhancement

Proposal:

Currently for a non-module-level import statement, like def f(): import foo, python will generate bytecode contains foo + eager. But we do not have a test for that and it should be added.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions