Home
last modified time | relevance | path

Searched refs:__add__ (Results 1 – 25 of 72) sorted by relevance

123

/third_party/python/Doc/library/
Dnumbers.rst126 means that :meth:`__add__` and :meth:`__radd__` should be defined as::
130 def __add__(self, other):
160 1. If ``A`` defines an :meth:`__add__` which accepts ``b``, all is
163 return a value from :meth:`__add__`, we'd miss the possibility
166 :meth:`__add__`. (Or ``A`` may not implement :meth:`__add__` at
174 ``A.__add__``. This is ok, because it was implemented with
222 __add__, __radd__ = _operator_fallbacks(_add, operator.add)
/third_party/node/tools/inspector_protocol/markupsafe/
D__init__.py78 def __add__(self, other): member in Markup
80 return self.__class__(super(Markup, self).__add__(self.escape(other)))
85 return self.escape(other).__add__(self)
/third_party/skia/third_party/externals/markupsafe/
D__init__.py78 def __add__(self, other): member in Markup
80 return self.__class__(super(Markup, self).__add__(self.escape(other)))
85 return self.escape(other).__add__(self)
/third_party/node/deps/v8/third_party/markupsafe/
D__init__.py78 def __add__(self, other): member in Markup
80 return self.__class__(super(Markup, self).__add__(self.escape(other)))
85 return self.escape(other).__add__(self)
/third_party/python/Lib/test/
Dtest_descr.py248 def __add__(self, other): member in OperatorsTest.test_ints.C
2693 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.hexint
2694 return hexint(int.__add__(self, other))
2714 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.octlong
2715 return self.__class__(super(octlong, self).__add__(other))
2716 __radd__ = __add__
3431 def __add__(self, other): member in ClassPropertiesAndMethods.test_binary_operator_override.I
3433 __radd__ = __add__
4513 self.assertTrue(l.__add__ == l.__add__)
4514 self.assertFalse(l.__add__ != l.__add__)
[all …]
Dtest_augassign.py74 def __add__(self, val): member in AugAssignTest.testCustomMethods1.aug_test
122 def __add__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_binop.py81 def __add__(self, other): member in Rat
92 __radd__ = __add__
/third_party/markupsafe/
D__init__.py84 def __add__(self, other: t.Union[str, "HasHTML"]) -> "Markup": member in Markup
86 return self.__class__(super().__add__(self.escape(other)))
92 return self.escape(other).__add__(self)
/third_party/littlefs/scripts/
Dsummary.py116 def __add__(self, other): member in Int
162 __add__ = Int.__add__ variable in Float
211 def __add__(self, other): member in Frac
320 def __add__(self, other): function
338 '__add__': __add__,
Dcov.py100 def __add__(self, other): member in Int
154 def __add__(self, other): member in Frac
194 def __add__(self, other): member in CovResult
Ddata.py100 def __add__(self, other): member in Int
123 def __add__(self, other): member in DataResult
Dcode.py100 def __add__(self, other): member in Int
123 def __add__(self, other): member in CodeResult
Dstructs.py96 def __add__(self, other): member in Int
117 def __add__(self, other): member in StructResult
/third_party/python/Lib/multiprocessing/
Dreduction.py220 register(type(int.__add__), _reduce_method_descriptor)
279 register(type(int.__add__), _reduce_method_descriptor)
/third_party/python/Lib/xml/dom/
Dminicompat.py77 def __add__(self, other): member in EmptyNodeList
/third_party/python/Tools/demo/
Dvector.py66 def __add__(self, other): member in Vec
/third_party/python/Tools/scripts/
Dfind_recursionlimit.py50 def __add__(self, x): member in RecursiveBlowup4
/third_party/vk-gl-cts/modules/gles31/scripts/
Dgenutil.py305 def __add__(self, val): member in Scalar
352 def __add__(self, val): member in Uint
353 return Scalar.__add__(self, val).toUint()
464 def __add__(self, val): member in Vec2
581 def __add__(self, val): member in Vec3
695 def __add__(self, val): member in Vec4
/third_party/vk-gl-cts/modules/gles3/scripts/
Dgenutil.py305 def __add__(self, val): member in Scalar
350 def __add__(self, val): member in Uint
351 return Scalar.__add__(self, val).toUint()
462 def __add__(self, val): member in Vec2
579 def __add__(self, val): member in Vec3
693 def __add__(self, val): member in Vec4
/third_party/vk-gl-cts/modules/gles2/scripts/
Dgenutil.py273 def __add__(self, val): member in Scalar
388 def __add__(self, val): member in Vec2
480 def __add__(self, val): member in Vec3
567 def __add__(self, val): member in Vec4
/third_party/python/Lib/
Dnumbers.py72 def __add__(self, other): member in Complex
Ddatetime.py609 def __add__(self, other): member in timedelta
618 __radd__ = __add__
1034 def __add__(self, other): member in date
1043 __radd__ = __add__
2069 def __add__(self, other): member in datetime
2088 __radd__ = __add__
Dstatistics.py1196 def __add__(x1, x2): member in NormalDist
1248 __radd__ = __add__
/third_party/python/Lib/email/
D_policybase.py85 def __add__(self, other): member in _PolicyBase
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py112 mock.__add__ = add
116 del mock.__add__

123