diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-02-26 20:29:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 20:29:49 +0200 |
commit | 72cff8d8e5a476d3406efb0491452bf9d6b02feb (patch) | |
tree | 401a6020466917aa98fb0ade7e0d0686ea2c7702 /Lib/test/test_pydoc/pydocfodder.py | |
parent | 68c79d21fa791d7418a858b7aa4604880e988a02 (diff) | |
download | cpython-72cff8d8e5a476d3406efb0491452bf9d6b02feb.tar.gz cpython-72cff8d8e5a476d3406efb0491452bf9d6b02feb.zip |
gh-113942: Show functions implemented as builtin methods (GH-115306)
Pydoc no longer skips global functions implemented as builtin methods,
such as MethodDescriptorType and WrapperDescriptorType.
Diffstat (limited to 'Lib/test/test_pydoc/pydocfodder.py')
-rw-r--r-- | Lib/test/test_pydoc/pydocfodder.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_pydoc/pydocfodder.py b/Lib/test/test_pydoc/pydocfodder.py index 27037e048db..3cc2d5bd57f 100644 --- a/Lib/test/test_pydoc/pydocfodder.py +++ b/Lib/test/test_pydoc/pydocfodder.py @@ -81,6 +81,8 @@ class B(A): A_method_ref = A().A_method A_method_alias = A.A_method B_method_alias = B_method + count = list.count # same name + list_count = list.count __repr__ = object.__repr__ # same name object_repr = object.__repr__ get = {}.get # same name @@ -180,5 +182,7 @@ B_method = B.B_method # same name B_method2 = B.B_method count = list.count # same name list_count = list.count +__repr__ = object.__repr__ # same name +object_repr = object.__repr__ get = {}.get # same name dict_get = {}.get |