Home
last modified time | relevance | path

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

123456

/external/python/cpython3/Doc/library/
Dnumbers.rst125 means that :meth:`__add__` and :meth:`__radd__` should be defined as::
129 def __add__(self, other):
159 1. If ``A`` defines an :meth:`__add__` which accepts ``b``, all is
162 return a value from :meth:`__add__`, we'd miss the possibility
165 :meth:`__add__`. (Or ``A`` may not implement :meth:`__add__` at
173 ``A.__add__``. This is ok, because it was implemented with
221 __add__, __radd__ = _operator_fallbacks(_add, operator.add)
/external/python/cpython2/Doc/library/
Dnumbers.rst122 means that :meth:`__add__` and :meth:`__radd__` should be defined as::
126 def __add__(self, other):
156 1. If ``A`` defines an :meth:`__add__` which accepts ``b``, all is
159 return a value from :meth:`__add__`, we'd miss the possibility
162 :meth:`__add__`. (Or ``A`` may not implement :meth:`__add__` at
170 ``A.__add__``. This is ok, because it was implemented with
218 __add__, __radd__ = _operator_fallbacks(_add, operator.add)
/external/tensorflow/tensorflow/python/autograph/converters/
Dvariables_test.py156 def __add__(self, other): member in VariablesTest.test_attribute.TestClass
175 def __add__(self, other): member in VariablesTest.test_subscript.TestClass
197 def __add__(self, other): member in VariablesTest.test_call.TestClass
/external/libchrome/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)
/external/python/markupsafe/src/markupsafe/
D__init__.py58 def __add__(self, other): member in Markup
60 return self.__class__(super().__add__(self.escape(other)))
65 return self.escape(other).__add__(self)
/external/fonttools/Lib/fontTools/misc/
Dvector.py51 def __add__(self, other): member in Vector
54 __radd__ = __add__
DdictTools.py62 def __add__(self, right): member in hashdict
/external/python/cpython3/Lib/test/
Dtest_descr.py246 def __add__(self, other): member in OperatorsTest.test_ints.C
2671 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.hexint
2672 return hexint(int.__add__(self, other))
2692 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.octlong
2693 return self.__class__(super(octlong, self).__add__(other))
2694 __radd__ = __add__
3409 def __add__(self, other): member in ClassPropertiesAndMethods.test_binary_operator_override.I
3411 __radd__ = __add__
4454 self.assertTrue(l.__add__ == l.__add__)
4455 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
/external/python/cpython2/Demo/classes/
DDates.py152 def __add__(self, n): member in Date
156 __radd__ = __add__ # handle int+date
DVec.py46 def __add__(self, other): member in Vec
DComplex.py178 def __add__(self, other): member in Complex
182 __radd__ = __add__
/external/python/cpython3/Tools/demo/
Dvector.py52 def __add__(self, other): member in Vec
/external/chromium-trace/catapult/devil/devil/utils/
Dgeometry.py21 def __add__(self, other): member in Point
/external/python/cpython3/Lib/xml/dom/
Dminicompat.py77 def __add__(self, other): member in EmptyNodeList
/external/python/cpython2/Tools/scripts/
Dfind_recursionlimit.py50 def __add__(self, x): member in RecursiveBlowup4
/external/python/cpython2/Lib/test/
Dtest_augassign.py86 def __add__(self, val): member in AugAssignTest.testCustomMethods1.aug_test
126 def __add__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_descr.py254 def __add__(self, other): member in OperatorsTest.test_ints.C
2636 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.hexint
2637 return hexint(int.__add__(self, other))
2660 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.octlong
2661 return self.__class__(super(octlong, self).__add__(other))
2662 __radd__ = __add__
3578 def __add__(self, other): member in ClassPropertiesAndMethods.test_binary_operator_override.I
3580 __radd__ = __add__
4615 self.assertEqual(l.__add__, l.__add__)
4616 self.assertEqual(l.__add__, [].__add__)
[all …]
/external/python/cpython2/Lib/xml/dom/
Dminicompat.py78 def __add__(self, other): member in EmptyNodeList
/external/python/cpython3/Tools/scripts/
Dfind_recursionlimit.py50 def __add__(self, x): member in RecursiveBlowup4
/external/python/cpython3/Lib/multiprocessing/
Dreduction.py220 register(type(int.__add__), _reduce_method_descriptor)
279 register(type(int.__add__), _reduce_method_descriptor)
/external/llvm-project/lldb/examples/python/
Dsbvalue.py128 def __add__(self, other): member in variable
171 result = self.__add__(other)
/external/llvm-project/clang/utils/ABITest/
DEnumeration.py24 def __add__(self, b): member in Aleph0
26 __radd__ = __add__
/external/clang/utils/ABITest/
DEnumeration.py23 def __add__(self, b): member in Aleph0
25 __radd__ = __add__
/external/python/cffi/testing/
Dsupport.py7 def __add__(self, other): member in U

123456