Home
last modified time | relevance | path

Searched refs:__radd__ (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython2/Doc/library/
Dnumbers.rst122 means that :meth:`__add__` and :meth:`__radd__` should be defined as::
134 def __radd__(self, other):
160 that ``B`` defines a more intelligent :meth:`__radd__`, so the
164 3. Then ``B``'s :meth:`__radd__` gets a chance. If it accepts
169 5. If ``B <: A``, Python tries ``B.__radd__`` before
176 in :class:`complex`, and both :meth:`__radd__` s land there, so ``a+b
218 __add__, __radd__ = _operator_fallbacks(_add, operator.add)
/external/python/cpython2/Lib/test/
Dtest_augassign.py84 def __radd__(self, val): member in AugAssignTest.testCustomMethods1.aug_test
128 def __radd__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_userlist.py28 u2 = u.__radd__(UserList("spam"))
Dtest_coercion.py42 def __radd__(self,other): member in MethodNumber
Dtest_binop.py97 __radd__ = __add__ variable in Rat
Dtest_complex.py393 __radd__ = __add__ variable in ComplexTest.test_subclass.xcomplex
Dtest_descr.py2530 __radd__ = __add__ variable in ClassPropertiesAndMethods.test_basic_inheritance.octlong
3448 __radd__ = __add__ variable in ClassPropertiesAndMethods.test_binary_operator_override.I
/external/python/cpython2/Lib/xml/dom/
Dminicompat.py83 def __radd__(self, other): member in EmptyNodeList
/external/python/cpython2/Lib/
Dnumbers.py78 def __radd__(self, other): member in Complex
DUserList.py55 def __radd__(self, other): member in UserList
DUserString.py50 def __radd__(self, other): member in UserString
Dfractions.py393 __add__, __radd__ = _operator_fallbacks(_add, operator.add) variable in Fraction
Ddecimal.py1210 __radd__ = __add__ variable in Decimal
/external/python/cpython2/Demo/classes/
DDates.py156 __radd__ = __add__ # handle int+date variable in Date
DComplex.py182 __radd__ = __add__ variable in Complex
/external/libmojo/third_party/markupsafe/
D__init__.py83 def __radd__(self, other): member in Markup
/external/clang/utils/ABITest/
DEnumeration.py25 __radd__ = __add__ variable in Aleph0
/external/libmojo/third_party/jinja2/
Druntime.py493 __add__ = __radd__ = __mul__ = __rmul__ = __div__ = __rdiv__ = \
/external/python/cpython2/Doc/reference/
Ddatamodel.rst1867 :meth:`__add__`, :meth:`__radd__`, :meth:`__iadd__`, :meth:`__mul__`,
2122 .. method:: object.__radd__(self, other)
2186 and ``y.__radd__(x)`` are considered, as with the evaluation of ``x + y``.
2285 :meth:`__add__` and :meth:`__radd__` are used for the left and right variant of
/external/python/cpython2/Misc/
Dcheatsheet1207 3 + a calls __radd__(a, 3)
DHISTORY1817 allows other classes to implement __radd__ style methods and have them