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

Method __add__

Lib/email/_policybase.py:94–100  ·  view source on GitHub ↗

Non-default values from right operand override those from left. The object returned is a new instance of the subclass.

(self, other)

Source from the content-addressed store, hash-verified

92 raise AttributeError(msg.format(self.__class__.__name__, name))
93
94 def __add__(self, other):
95 """Non-default values from right operand override those from left.
96
97 The object returned is a new instance of the subclass.
98
99 """
100 return self.clone(**other.__dict__)
101
102
103def _append_doc(doc, added_doc):

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.95

Tested by

no test coverage detected