Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ FloatLike
Class
FloatLike
Lib/test/test_float.py:52–57 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
50
return
self.value
51
52
class
FloatLike:
53
def
__init__(self, value):
54
self.value = value
55
56
def
__float__(self):
57
return
self.value
58
59
60
class
GeneralFloatCases(unittest.TestCase):
Callers
2
test_floatconversion
Method · 0.70
test_from_number
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_floatconversion
Method · 0.56
test_from_number
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…