MCPcopy Index your code
hub / github.com/python/cpython / mro

Method mro

Lib/test/test_descr.py:4444–4449  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4442 self.flag = 0
4443 return super(WorkOnce, self).__new__(WorkOnce, name, bases, ns)
4444 def mro(self):
4445 if self.flag > 0:
4446 raise RuntimeError("bozo")
4447 else:
4448 self.flag += 1
4449 return type.mro(self)
4450
4451 class WorkAlways(type):
4452 def mro(self):

Callers

nothing calls this directly

Calls 1

mroMethod · 0.45

Tested by

no test coverage detected