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

Class FloatLen

Lib/test/test_builtin.py:1329–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1327 return None
1328 self.assertRaises(TypeError, len, InvalidLen())
1329 class FloatLen:
1330 def __len__(self):
1331 return 4.5
1332 self.assertRaises(TypeError, len, FloatLen())
1333 class NegativeLen:
1334 def __len__(self):

Callers 1

test_lenMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_lenMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…