Skip to content

pydoc does not show many functions implemented in C #139076

Closed

Description

@serhiy-storchaka

Bug report

For example, for the curses module, pydoc shows only three functions (all implemented in Python) in 3.13, but shows dozens functions in 3.12.

This regression was introduced in #113942.

If the Python module does not have __all__ and is a wrapper around a C module, the imported builtin function can have different __module__ (unless the C module do not specify __module__ or lies about it). We should ignore __module__ for builtin function. Maybe for builtin classes too?

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    3.13only security fixes
    3.14bugs and security fixes
    3.15bugs and security fixes
    on Sep 17, 2025
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Sep 17, 2025
  3. added 2 commits that reference this issue on Sep 17, 2025
  4. added 2 commits that reference this issue on Sep 19, 2025
  5. added a commit that references this issue on Sep 19, 2025
  6. added a commit that references this issue on Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.13only security fixes3.14bugs and security fixes3.15bugs and security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions