Skip to content

Clarify __lazy_import__ docstring in bltinmodule.c #161715

Open

Description

@JadenV15

Documentation

Docstring is currently:

/*[clinic input]
__lazy_import__ as builtin___lazy_import__

    name: object
    globals: object(c_default="NULL") = None
    locals: object(c_default="NULL") = None
    fromlist: object(c_default="NULL") = ()
    level: int = 0

Lazily imports a module.

Returns either the module to be imported or a imp.lazy_module object
which indicates the module to be lazily imported.
[clinic start generated code]*/

Should change because:

  • what is imp.lazy_module? should be types.LazyImportType
  • it's not to be [lazily] imported, it's [lazily] imported.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions