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

Method __lt__

Lib/test/test_sort.py:57–62  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

55 self.i = i
56
57 def __lt__(self, other):
58 if Complains.maybe_complain and random.random() < 0.001:
59 if verbose:
60 print(" complaining at", self, other)
61 raise RuntimeError
62 return self.i < other.i
63
64 def __repr__(self):
65 return "Complains(%d)" % self.i

Callers

nothing calls this directly

Calls 1

randomMethod · 0.45

Tested by

no test coverage detected