gh-139076: Fix regression in pydoc not showing extension functions (GH-139077)

Fix a bug in the pydoc module that was hiding functions in a Python
module if they were implemented in an extension module and the module did
not have __all__.
This commit is contained in:
Serhiy Storchaka 2025-09-19 15:54:06 +03:00 committed by GitHub
parent b36dee855d
commit 7257b24140
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 0 deletions

View file

@ -87,6 +87,8 @@ def B_classmethod(cls, x):
object_repr = object.__repr__
get = {}.get # same name
dict_get = {}.get
from math import sin
B.B_classmethod_ref = B.B_classmethod
@ -186,3 +188,4 @@ def __call__(self, inst):
object_repr = object.__repr__
get = {}.get # same name
dict_get = {}.get
from math import sin # noqa: F401