MCPcopy Index your code
hub / github.com/python/cpython / __add__

Method __add__

Lib/test/test_descr.py:2868–2869  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2866 def __repr__(self):
2867 return hex(self)
2868 def __add__(self, other):
2869 return hexint(int.__add__(self, other))
2870 # (Note that overriding __radd__ doesn't work,
2871 # because the int type gets first dibs.)
2872 self.assertEqual(repr(hexint(7) + 9), "0x10")

Callers

nothing calls this directly

Calls 2

hexintClass · 0.85
__add__Method · 0.45

Tested by

no test coverage detected