8000 pydoc does not show unbound methods of builtin classes as module members · Issue #113942 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
pydoc does not show unbound methods of builtin classes as module members #113942
Closed
@serhiy-storchaka

Description

@serhiy-storchaka

If you set an unbound method of builtin class as a module global, pydoc will not show it in the module output. It shows builtin functions and static methods, class methods and bound instance methods of builtin classes.

list_count = list.count  # not shown
list_repr = list.__repr__  # not shown
builtin_ord = ord
str_maketrans = str.maketrans
dict_fromkeys = dict.fromkeys
dict_get = {}.get

Linked PRs

Metadata

Metadata

Labels

3.13bugs and security fixes

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0