Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ BadFloat
Class
BadFloat
Lib/test/test_math.py:1075–1076 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1073
dist([1], 2)
1074
1075
class
BadFloat:
1076
__float__ = BadDescr()
1077
1078
with
self.assertRaises(ValueError):
1079
dist([1], [BadFloat()])
Callers
1
testDist
Method · 0.70
Calls
1
BadDescr
Class · 0.70
Tested by
1
testDist
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…