Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __complex__
Method
__complex__
Lib/test/test_complex.py:55–56 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
53
def
__init__(self, value):
54
self.value = value
55
def
__complex__(self):
56
return
self.value
57
58
class
ComplexTest(ComplexesAreIdenticalMixin, unittest.TestCase):
59
Callers
1
test___complex__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected