/external/python/cpython2/Doc/library/ |
D | numbers.rst | 122 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/ |
D | test_augassign.py | 84 def __radd__(self, val): member in AugAssignTest.testCustomMethods1.aug_test 128 def __radd__(self, val): member in AugAssignTest.testCustomMethods2.testall
|
D | test_userlist.py | 28 u2 = u.__radd__(UserList("spam"))
|
D | test_coercion.py | 42 def __radd__(self,other): member in MethodNumber
|
D | test_binop.py | 97 __radd__ = __add__ variable in Rat
|
D | test_complex.py | 393 __radd__ = __add__ variable in ComplexTest.test_subclass.xcomplex
|
D | test_descr.py | 2530 __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/ |
D | minicompat.py | 83 def __radd__(self, other): member in EmptyNodeList
|
/external/python/cpython2/Lib/ |
D | numbers.py | 78 def __radd__(self, other): member in Complex
|
D | UserList.py | 55 def __radd__(self, other): member in UserList
|
D | UserString.py | 50 def __radd__(self, other): member in UserString
|
D | fractions.py | 393 __add__, __radd__ = _operator_fallbacks(_add, operator.add) variable in Fraction
|
D | decimal.py | 1210 __radd__ = __add__ variable in Decimal
|
/external/python/cpython2/Demo/classes/ |
D | Dates.py | 156 __radd__ = __add__ # handle int+date variable in Date
|
D | Complex.py | 182 __radd__ = __add__ variable in Complex
|
/external/libmojo/third_party/markupsafe/ |
D | __init__.py | 83 def __radd__(self, other): member in Markup
|
/external/clang/utils/ABITest/ |
D | Enumeration.py | 25 __radd__ = __add__ variable in Aleph0
|
/external/libmojo/third_party/jinja2/ |
D | runtime.py | 493 __add__ = __radd__ = __mul__ = __rmul__ = __div__ = __rdiv__ = \
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 1867 :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/ |
D | cheatsheet | 1207 3 + a calls __radd__(a, 3)
|
D | HISTORY | 1817 allows other classes to implement __radd__ style methods and have them
|