Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ mro
Method
mro
Lib/test/test_descr.py:2033–2036 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
2031
2032
class
PerverseMetaType(type):
2033
def
mro(cls):
2034
L = type.mro(cls)
2035
L.reverse()
2036
return
L
2037
class
X(D,B,C,A, metaclass=PerverseMetaType):
2038
pass
2039
self.assertEqual(X.__mro__, (object, A, C, B, D, X))
Callers
nothing calls this directly
Calls
2
mro
Method · 0.45
reverse
Method · 0.45
Tested by
no test coverage detected