Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __init__
Method
__init__
Lib/test/test_fractions.py:195–197 ·
view source on GitHub ↗
(self, v, n=F(2))
Source
from the content-addressed store, hash-verified
193
class
Root:
194
""
"Simple Real class for testing mixed arithmetic."
""
195
def
__init__(self, v, n=F(2)):
196
self.base = v
197
self.degree = n
198
def
__mul__(self, other):
199
if
isinstance(other, F):
200
return
NotImplemented
Callers
nothing calls this directly
Calls
1
F
Class · 0.70
Tested by
no test coverage detected