Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __add__
Method
__add__
Lib/test/test_descr.py:256–257 ·
view source on GitHub ↗
(self, other)
Source
from the content-addressed store, hash-verified
254
# This returns 'NotImplemented' in Python 2.2
255
class
C(int):
256
def
__add__(self, other):
257
return
NotImplemented
258
self.assertEqual(C(5), 5)
259
try
:
260
C() +
""
Callers
3
__add__
Method · 0.45
__add__
Method · 0.45
test_proxy_call
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected