Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __float__
Method
__float__
Lib/test/test_memoryview.py:756–758 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
754
return
4
755
class
MyFloat:
756
def
__float__(self):
757
release()
758
return
4.25
759
class
MyBool:
760
def
__bool__(self):
761
release()
Callers
nothing calls this directly
Calls
1
release
Function · 0.85
Tested by
no test coverage detected