You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pydoc does not show unbound methods of builtin classes as module members #113942
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 shownlist_repr=list.__repr__# not shownbuiltin_ord=ordstr_maketrans=str.maketransdict_fromkeys=dict.fromkeysdict_get= {}.get
I am not sure whether it is worth to backport. It does not make difference for the stdlib, so it is safer to not backport. But we can backport if we get real world examples.
Activity
pythongh-113942: Show functions implemented as builtin methods
gh-113942: Show functions implemented as builtin methods (GH-115306)
serhiy-storchaka commentedon Feb 26, 2024
I am not sure whether it is worth to backport. It does not make difference for the stdlib, so it is safer to not backport. But we can backport if we get real world examples.
pythongh-113942: Show functions implemented as builtin methods (pytho…
pythongh-113942: Show functions implemented as builtin methods (pytho…
pythongh-113942: Show functions implemented as builtin methods (pytho…
pythongh-113942: Show functions implemented as builtin methods (pytho…