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

Class IndexableFloatLike

Lib/test/test_math.py:192–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 return self.value
191
192class IndexableFloatLike:
193 def __init__(self, float_value, index_value):
194 self.float_value = float_value
195 self.index_value = index_value
196
197 def __float__(self):
198 if isinstance(self.float_value, BaseException):
199 raise self.float_value
200 return self.float_value
201
202 def __index__(self):
203 if isinstance(self.index_value, BaseException):
204 raise self.index_value
205 return self.index_value
206
207
208class BadDescr:

Callers 3

testLogMethod · 0.85
testLog2Method · 0.85
testLog10Method · 0.85

Calls

no outgoing calls

Tested by 3

testLogMethod · 0.68
testLog2Method · 0.68
testLog10Method · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…