mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
bpo-20285: Improve help docs for object (GH-4759)
This commit is contained in:
parent
f1e17e9f97
commit
c95c93d4eb
3 changed files with 11 additions and 3 deletions
|
@ -867,7 +867,7 @@ class HTMLDoc(Doc):
|
|||
thisclass = attrs[0][2]
|
||||
attrs, inherited = _split_list(attrs, lambda t: t[2] is thisclass)
|
||||
|
||||
if thisclass is builtins.object:
|
||||
if object is not builtins.object and thisclass is builtins.object:
|
||||
attrs = inherited
|
||||
continue
|
||||
elif thisclass is object:
|
||||
|
@ -1327,7 +1327,7 @@ location listed above.
|
|||
thisclass = attrs[0][2]
|
||||
attrs, inherited = _split_list(attrs, lambda t: t[2] is thisclass)
|
||||
|
||||
if thisclass is builtins.object:
|
||||
if object is not builtins.object and thisclass is builtins.object:
|
||||
attrs = inherited
|
||||
continue
|
||||
elif thisclass is object:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue