-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir
Description
Documentation
I found the leading sentence in this paragraph a little misleading:
cpython/Doc/library/functions.rst
Line 1961 in ec89620
The :attr:`~class.__mro__` attribute of the *object_or_type* lists the method |
because if the
object_or_type
is an object, it won't have __mro__
attribute. The attribute should be object.__class__.__mro__
.
On the other hand, if object_or_type
is a type (class), then __mro__
attribute does exist.
Linked PRs
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir