-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
This line https://github.com/python/cpython/blame/4d82f628c44490d6fbc3f6998d2473d1304d891f/Lib/inspect.py#L540 has this logic mro = (object,) + getmro(object)
I don't think this is correct:
getmroreturns MRO including self type- We waste time on doing this
- It might backfire at some moment, now it works because of how MRO is used later
Introduced in 86a8a9a
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error