MCPcopy 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_callMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected