Home
last modified time | relevance | path

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

12345678910>>...94

/dports/lang/cython/Cython-0.29.24/tests/run/
H A Dspecial_method_docstrings.pyx7 >>> A.__add__.__doc__
8 'A.__add__ docstring'
16 def __add__(self, other): member in A
17 "A.__add__ docstring"
27 >>> B.__add__.__doc__
28 'A.__add__ docstring'
41 >>> C.__add__.__doc__
42 'A.__add__ docstring'
H A Dc_type_methods_T236.pyx35 return f.__add__(2)
43 return 2. .__add__(f)
51 return i.__add__(2)
59 return 2 .__add__(i)
/dports/lang/cython-devel/cython-2b1e743/tests/run/
H A Dspecial_method_docstrings.pyx7 >>> A.__add__.__doc__
8 'A.__add__ docstring'
16 def __add__(self, other): member in A
17 "A.__add__ docstring"
27 >>> B.__add__.__doc__
28 'A.__add__ docstring'
41 >>> C.__add__.__doc__
42 'A.__add__ docstring'
H A Dbinop_reverse_methods_GH2056.pyx14 'Base.__add__(Base(), 2)'
39 def __add__(self, other): member in Base
72 'OverloadLeft.__add__(OverloadLeft(), 2)'
77 'OverloadLeft.__add__(OverloadLeft(), Base())'
79 'Base.__add__(Base(), OverloadLeft())'
96 def __add__(self, other): member in OverloadLeft
108 'Base.__add__(OverloadRight(), 2)'
113 'Base.__add__(OverloadRight(), Base())'
144 'OverloadCApi.__add__(OverloadCApi(), 2)'
146 'OverloadCApi.__add__(2, OverloadCApi())'
[all …]
H A Dc_type_methods_T236.pyx32 return f.__add__(2)
40 return 2. .__add__(f)
48 return i.__add__(2)
56 return 2 .__add__(i)
/dports/textproc/py-citeproc-py/citeproc-py-0.6.0/citeproc/
H A Dstring.py20 return MixedString([other]).__add__(self)
23 def __add__(self, other): member in String
24 return MixedString([self]).__add__(other)
27 return self.__add__(other)
57 def __add__(self, other): member in MixedString
60 return self.__class__(super_obj.__add__(other))
62 return self.__class__(super_obj.__add__(MixedString([other])))
66 return self.__class__([other]).__add__(self)
69 return self.__add__(other)
/dports/devel/py-funcy/funcy-1.15/tests/
H A Dtest_funcs.py1 from operator import __add__, __sub__
18 assert partial(__add__, 10)(1) == 11
19 assert partial(__add__, 'abra')('cadabra') == 'abracadabra'
43 assert curry(__add__, 2)(10)(1) == 11
44 assert curry(__add__)(10)(1) == 11 # Introspect builtin
89 assert autocurry(required_star)(__add__)('12', 'ab') == ['1a', '2b']
136 assert ljuxt(__add__, __sub__)(10, 2) == [12, 8]
/dports/sysutils/py-salt/salt-3004.1/tests/unit/utils/
H A Dtest_immutabletypes.py20 __add__ = imt + lst
21 self.assertEqual(__add__, [1, 2, 3, 4, 5, 6])
28 __add__ = imt + lst
29 self.assertEqual(__add__, [1, 2, 3, 4, 5, 6])
/dports/lang/micropython/micropython-1.17/tests/basics/
H A Dclass_getattr.py4 self.__add__ = lambda: print('member __add__')
5 def __add__(self, x): member in C
13 c.__add__() # should load __add__ instance directly
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/google-endpoints/cachetools/
H A Dkeys.py14 def __add__(self, other, add=tuple.__add__): member in _HashedTuple
17 def __radd__(self, other, add=tuple.__add__):
/dports/www/chromium-legacy/chromium-88.0.4324.182/tools/swarming_client/third_party/cachetools/
H A Dkeys.py18 def __add__(self, other, add=tuple.__add__): member in _HashedTuple
21 def __radd__(self, other, add=tuple.__add__):
/dports/devel/py-cachetools/cachetools-4.2.4/src/cachetools/
H A Dkeys.py22 def __add__(self, other, add=tuple.__add__): member in _HashedTuple
25 def __radd__(self, other, add=tuple.__add__):
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/third_party/cachetools/
H A Dkeys.py25 def __add__(self, other, add=tuple.__add__): member in _HashedTuple
28 def __radd__(self, other, add=tuple.__add__):
/dports/devel/py-cachetools3/cachetools-3.1.1/cachetools/
H A Dkeys.py24 def __add__(self, other, add=tuple.__add__): member in _HashedTuple
27 def __radd__(self, other, add=tuple.__add__):
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/cachetools/cachetools/
H A Dkeys.py24 def __add__(self, other, add=tuple.__add__): member in _HashedTuple
27 def __radd__(self, other, add=tuple.__add__):
/dports/textproc/py-elasticsearch-dsl/elasticsearch-dsl-7.3.0/elasticsearch_dsl/
H A Dquery.py67 def __add__(self, other): member in Query
95 def __add__(self, other): member in MatchAll
98 __and__ = __rand__ = __radd__ = __add__
115 def __add__(self, other): member in MatchNone
118 __and__ = __rand__ = __radd__ = __add__
138 def __add__(self, other): member in Bool
149 __radd__ = __add__
/dports/textproc/py-elasticsearch-dsl6/elasticsearch-dsl-6.4.0/elasticsearch_dsl/
H A Dquery.py41 def __add__(self, other): member in Query
68 def __add__(self, other): member in MatchAll
70 __and__ = __rand__ = __radd__ = __add__
82 def __add__(self, other): member in MatchNone
84 __and__ = __rand__ = __radd__ = __add__
102 def __add__(self, other): member in Bool
112 __radd__ = __add__
/dports/devel/swig/swig-4.0.2/Lib/octave/
H A Doctopers.swg22 // __add__ a + b
43 %rename(__add__) *::operator+;
44 %rename(__add__) *::operator+();
45 %rename(__add__) *::operator+() const;
/dports/math/adol-c/ADOL-C-2.7.2/ADOL-C/swig/
H A Dadolc-octave.i77 adub* __add__(double a) const { in __add__() function
83 adub* __add__(const pdouble& a) const { in __add__() function
89 adub* __add__(const badouble& a) const { in __add__() function
140 adub* __add__(double a) const { in __add__() function
/dports/science/siconos/siconos-4.4.0/wrap/swig/
H A DpyRegister.i12 %rename (__add__) TYPE ## ::operator+;
45 %rename (__add__) TYPE ## ::operator+;
71 %rename (__add__) TYPE ## ::operator+;
96 %rename (__add__) TYPE ## ::operator+;
/dports/security/py-ropper/Ropper-1.13.6/ropper/common/
H A Dcoloredstring.py64 def __add__(self, arg): member in cstr
65 return cstr(str.__add__(str(self),str(arg)))
68 return cstr(str.__add__(str(self),str(arg)))
/dports/databases/py-gdbm/Python-3.8.12/Doc/library/
H A 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)
/dports/lang/python37/Python-3.7.12/Doc/library/
H A 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)
/dports/lang/python38/Python-3.8.12/Doc/library/
H A 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)
/dports/lang/python310/Python-3.10.1/Doc/library/
H A Dnumbers.rst126 means that :meth:`__add__` and :meth:`__radd__` should be defined as::
130 def __add__(self, other):
160 1. If ``A`` defines an :meth:`__add__` which accepts ``b``, all is
163 return a value from :meth:`__add__`, we'd miss the possibility
166 :meth:`__add__`. (Or ``A`` may not implement :meth:`__add__` at
174 ``A.__add__``. This is ok, because it was implemented with
222 __add__, __radd__ = _operator_fallbacks(_add, operator.add)

12345678910>>...94