Home
last modified time | relevance | path

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

123

/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/libmojo/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/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__
Dbitvec.py259 def __add__(self, other): member in BitVec
/external/libmojo/third_party/catapult/devil/devil/utils/
Dgeometry.py22 def __add__(self, other): member in Point
/external/chromium-trace/catapult/devil/devil/utils/
Dgeometry.py22 def __add__(self, other): member in Point
/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.py247 def __add__(self, other): member in OperatorsTest.test_ints.C
2504 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.hexint
2505 return hexint(int.__add__(self, other))
2528 def __add__(self, other): member in ClassPropertiesAndMethods.test_basic_inheritance.octlong
2529 return self.__class__(super(octlong, self).__add__(other))
2530 __radd__ = __add__
3446 def __add__(self, other): member in ClassPropertiesAndMethods.test_binary_operator_override.I
3448 __radd__ = __add__
4465 self.assertEqual(l.__add__, l.__add__)
4466 self.assertEqual(l.__add__, [].__add__)
[all …]
Dtest_binop.py86 def __add__(self, other): member in Rat
97 __radd__ = __add__
Dtest_coercion.py39 def __add__(self,other): member in MethodNumber
Dtest_complex.py391 def __add__(self,other): member in ComplexTest.test_subclass.xcomplex
393 __radd__ = __add__
Dtest_operator.py13 def __add__(self, other): member in Seq1
27 def __add__(self, other): member in Seq2
/external/python/cpython2/Tools/scripts/
Dfind_recursionlimit.py50 def __add__(self, x): member in RecursiveBlowup4
/external/python/cpython2/Lib/xml/dom/
Dminicompat.py78 def __add__(self, other): member in EmptyNodeList
/external/clang/utils/ABITest/
DEnumeration.py23 def __add__(self, b): member in Aleph0
25 __radd__ = __add__
/external/deqp/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
/external/deqp/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
/external/python/cpython2/Lib/
Dnumbers.py73 def __add__(self, other): member in Complex
DUserList.py48 def __add__(self, other): member in UserList
DUserString.py43 def __add__(self, other): member in UserString
Dfractions.py393 __add__, __radd__ = _operator_fallbacks(_add, operator.add) variable in Fraction
/external/deqp/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
/external/python/cpython2/Lib/multiprocessing/
Dforking.py80 ForkingPickler.register(type(int.__add__), _reduce_method_descriptor)

123