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

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__.
(cherry picked from commit 7257b24140)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-10-07 21:57:28 +02:00 committed by GitHub
parent b53f46a7b7
commit 103766528f
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