Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __add__
Method
__add__
Lib/test/test_capi/test_opt.py:3752–3753 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
3750
def
__init__(self, val):
3751
self.val = val
3752
def
__add__(self, other):
3753
return
CustomAdder(self.val + other.val)
3754
3755
def
testfunc(n):
3756
a = CustomAdder(1)
Callers
nothing calls this directly
Calls
1
CustomAdder
Class · 0.85
Tested by
no test coverage detected