GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Clarify __lazy_import__ docstring in bltinmodule.c · Issue #161715 · python/cpython

Clarify __lazy_import__ docstring in bltinmodule.c #161715

New issue
Copy link
New issue
Copy link
Open
Open
Clarify __lazy_import__ docstring in bltinmodule.c#161715
Copy link
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-lazy-imports

Description

@JadenV15
JadenV15
opened on Nov 9, 2026
Issue body actions

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

  • gh-161715: corrected and clarified __lazy_import__ docstring #161716

Activity

  1. JadenV15
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Nov 9, 2026
  2. github-project-automation
    added this to docs issueson Nov 9, 2026
  3. github-project-automation
    moved this to Todo in docs issueson Nov 9, 2026
  4. aisk
    added
    topic-lazy-imports
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirDocumentation in the Doc dirtopic-lazy-imports

    Projects

    • docs issues
      Status
      Todo
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.