mirror of
https://github.com/python/cpython.git
synced 2025-10-20 16:33:53 +00:00
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:
parent
b36dee855d
commit
7257b24140
4 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue