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

Class Stable

Lib/test/test_sort.py:67–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 return "Complains(%d)" % self.i
66
67 class Stable(object):
68 def __init__(self, key, i):
69 self.key = key
70 self.index = i
71
72 def __lt__(self, other):
73 return self.key < other.key
74
75 def __repr__(self):
76 return "Stable(%d, %d)" % (self.key, self.index)
77
78 for n in sizes:
79 x = list(range(n))

Callers 1

testStressfullyMethod · 0.85

Calls

no outgoing calls

Tested by 1

testStressfullyMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…