Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ __init__
Method
__init__
Python/Operator_oveloading.py:6–8 ·
view source on GitHub ↗
(self, a, b)
Source
from the content-addressed store, hash-verified
4
5
class
complex:
6
def
__init__(self, a, b):
7
self.a = a
8
self.b = b
9
10
# adding two objects
11
def
__add__(self, other):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected