MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / __add__

Method __add__

Python/Operator_oveloading.py:11–12  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

9
10 # adding two objects
11 def __add__(self, other):
12 return self.a + other.a, self.b + other.b
13
14Ob1 = complex(1, 2)
15Ob2 = complex(2, 3)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected