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

Class O

Lib/test/test_functools.py:2543–2545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2541 def g(arg):
2542 return "base"
2543 class O(c.Sized):
2544 def __len__(self):
2545 return 0
2546 o = O()
2547 self.assertEqual(g(o), "base")
2548 g.register(c.Iterable, lambda arg: "iterable")

Callers 1

test_mro_conflictsMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_mro_conflictsMethod · 0.56