Skip to content

Improve lazy functionality of importlib.util #140722

@dg-pb

Description

@dg-pb

Feature or enhancement

Proposal:

This introduces 4 new functions:

from importlib.util import lazy_import, background_import, eager_import, exclude_lazy

See referenced discourse thread for presentation

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/alternative-path-for-explicit-lazy-imports/104608

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directorytopic-importlibtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions