Home
last modified time | relevance | path

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

12

/third_party/python/Doc/library/
Dnumbers.rst126 means that :meth:`__add__` and :meth:`__radd__` should be defined as::
138 def __radd__(self, other):
164 that ``B`` defines a more intelligent :meth:`__radd__`, so the
168 3. Then ``B``'s :meth:`__radd__` gets a chance. If it accepts
173 5. If ``B <: A``, Python tries ``B.__radd__`` before
180 in :class:`complex`, and both :meth:`__radd__` s land there, so ``a+b
222 __add__, __radd__ = _operator_fallbacks(_add, operator.add)
/third_party/python/Lib/test/
Dtest_augassign.py72 def __radd__(self, val): member in AugAssignTest.testCustomMethods1.aug_test
124 def __radd__(self, val): member in AugAssignTest.testCustomMethods2.testall
Dtest_userlist.py35 u2 = u.__radd__(UserList("spam"))
Dtest_binop.py92 __radd__ = __add__ variable in Rat
Dtest_statistics.py1177 __radd__ = __add__ variable in UnivariateCommonMixin.test_type_of_data_element.MyFloat
1212 __radd__ = __add__ variable in UnivariateTypeMixin.prepare_types_for_conservation_test.MyFloat
Dtest_descr.py297 self.assertEqual(complex.__radd__(3j, 4.0), complex(4.0, 3.0))
2716 __radd__ = __add__ variable in ClassPropertiesAndMethods.test_basic_inheritance.octlong
3433 __radd__ = __add__ variable in ClassPropertiesAndMethods.test_binary_operator_override.I
/third_party/python/Lib/xml/dom/
Dminicompat.py82 def __radd__(self, other): member in EmptyNodeList
/third_party/python/Lib/
Dnumbers.py77 def __radd__(self, other): member in Complex
Dfractions.py465 __add__, __radd__ = _operator_fallbacks(_add, operator.add) variable in Fraction
Ddatetime.py618 __radd__ = __add__ variable in timedelta
1043 __radd__ = __add__ variable in date
2088 __radd__ = __add__ variable in datetime
Dstatistics.py1248 __radd__ = __add__ variable in NormalDist
D_pydecimal.py1243 __radd__ = __add__ variable in Decimal
/third_party/node/tools/inspector_protocol/markupsafe/
D__init__.py83 def __radd__(self, other): member in Markup
/third_party/skia/third_party/externals/markupsafe/
D__init__.py83 def __radd__(self, other): member in Markup
/third_party/node/deps/v8/third_party/markupsafe/
D__init__.py83 def __radd__(self, other): member in Markup
/third_party/markupsafe/
D__init__.py90 def __radd__(self, other: t.Union[str, "HasHTML"]) -> "Markup": member in Markup
/third_party/python/Modules/_decimal/tests/
Ddeccheck.py549 def __radd__(self, t): member in SkipHandler
556 __rmul__ = __radd__
/third_party/python/Lib/collections/
D__init__.py1234 def __radd__(self, other): member in UserList
1381 def __radd__(self, other): member in UserString
/third_party/node/deps/v8/third_party/jinja2/
Druntime.py756 __radd__
/third_party/skia/third_party/externals/jinja2/
Druntime.py756 __radd__
/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py126 mock.__radd__ = add
/third_party/node/tools/inspector_protocol/jinja2/
Druntime.py643 __add__ = __radd__ = __mul__ = __rmul__ = __div__ = __rdiv__ = \
/third_party/jinja2/
Druntime.py861 __add__ = __radd__ = __sub__ = __rsub__ = _fail_with_undefined_error
/third_party/protobuf/python/google/protobuf/internal/
Dtest_util.py786 def __radd__(self, y): member in NonStandardInteger
/third_party/python/Doc/reference/
Ddatamodel.rst2379 :meth:`~object.__add__`, :meth:`~object.__radd__`, :meth:`~object.__iadd__`,
2571 .. method:: object.__radd__(self, other)
2635 ``y.__radd__(x)`` are considered, as with the evaluation of ``x + y``. In

12