-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
pydoc does not show many functions implemented in C #139076
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
For example, for the
cursesmodule, 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