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

Class Foo3

Lib/test/test_float.py:213–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 return 42.
212
213 class Foo3(float):
214 def __new__(cls, value=0.):
215 return float.__new__(cls, 2*value)
216
217 def __float__(self):
218 return self
219
220 class Foo4(float):
221 def __float__(self):

Callers 1

test_floatconversionMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_floatconversionMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…