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

Method __add__

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

Source from the content-addressed store, hash-verified

2887 def __str__(self):
2888 return oct(self)
2889 def __add__(self, other):
2890 return self.__class__(super(octlong, self).__add__(other))
2891 __radd__ = __add__
2892 self.assertEqual(str(octlong(3) + 5), "0o10")
2893 # (Note that overriding __radd__ here only seems to work

Callers

nothing calls this directly

Calls 3

superClass · 0.85
__class__Method · 0.45
__add__Method · 0.45

Tested by

no test coverage detected