Searched refs:other (Results 1 - 25 of 181) sorted by relevance

12345678

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Dfunctools.py56 '__lt__': [('__gt__', lambda self, other: not (self < other or self == other)),
57 ('__le__', lambda self, other: self < other or self == other),
58 ('__ge__', lambda self, other: not self < other)],
59 '__le__': [('__ge__', lambda self, other: not self <= other o
[all...]
H A Dnumbers.py73 def __add__(self, other):
74 """self + other"""
78 def __radd__(self, other):
79 """other + self"""
92 def __sub__(self, other):
93 """self - other"""
94 return self + -other
96 def __rsub__(self, other):
97 """other - self"""
98 return -self + other
[all...]
H A D_weakrefset.py118 def update(self, other):
121 for element in other:
124 def __ior__(self, other):
125 self.update(other)
128 def difference(self, other):
130 newset.difference_update(other)
134 def difference_update(self, other):
135 self.__isub__(other)
136 def __isub__(self, other):
139 if self is other
[all...]
H A D_abcoll.py147 then the other operations will automatically follow suit.
150 def __le__(self, other):
151 if not isinstance(other, Set):
153 if len(self) > len(other):
156 if elem not in other:
160 def __lt__(self, other):
161 if not isinstance(other, Set):
163 return len(self) < len(other) and self.__le__(other)
165 def __gt__(self, other)
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dfunctools.py56 '__lt__': [('__gt__', lambda self, other: not (self < other or self == other)),
57 ('__le__', lambda self, other: self < other or self == other),
58 ('__ge__', lambda self, other: not self < other)],
59 '__le__': [('__ge__', lambda self, other: not self <= other o
[all...]
H A Dsets.py13 their elements have a definite order; sets on the other hand don't
54 # - Raymond Hettinger added a number of speedups and other
113 def __cmp__(self, other):
123 # NotImplemented instead of True or False. Then the other comparand
124 # would get a chance to determine the result, and if the other comparand
131 def __eq__(self, other):
132 if isinstance(other, BaseSet):
133 return self._data == other._data
137 def __ne__(self, other):
138 if isinstance(other, BaseSe
[all...]
H A Dnumbers.py73 def __add__(self, other):
74 """self + other"""
78 def __radd__(self, other):
79 """other + self"""
92 def __sub__(self, other):
93 """self - other"""
94 return self + -other
96 def __rsub__(self, other):
97 """other - self"""
98 return -self + other
[all...]
H A D_weakrefset.py116 def update(self, other):
119 if isinstance(other, self.__class__):
120 self.data.update(other.data)
122 for element in other:
125 def __ior__(self, other):
126 self.update(other)
130 def _apply(self, other, method):
131 if not isinstance(other, self.__class__):
132 other = self.__class__(other)
[all...]
H A DUserList.py17 def __lt__(self, other): return self.data < self.__cast(other)
18 def __le__(self, other): return self.data <= self.__cast(other)
19 def __eq__(self, other): return self.data == self.__cast(other)
20 def __ne__(self, other): return self.data != self.__cast(other)
21 def __gt__(self, other): return self.data > self.__cast(other)
[all...]
H A D_abcoll.py146 then the other operations will automatically follow suit.
149 def __le__(self, other):
150 if not isinstance(other, Set):
152 if len(self) > len(other):
155 if elem not in other:
159 def __lt__(self, other):
160 if not isinstance(other, Set):
162 return len(self) < len(other) and self.__le__(other)
164 def __gt__(self, other)
[all...]
H A Ddecimal.py728 def _check_nans(self, other=None, context=None):
731 if self, other are sNaN, signal
732 if self, other are NaN return nan
739 if other is None:
742 other_is_nan = other._isnan()
753 other)
757 return other._fix_nan(context)
760 def _compare_check_nans(self, other, context):
764 Signal InvalidOperation if either self or other is a (quiet
774 if self._is_special or other
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/crashers/
H A Dgc_has_finalizer.py21 def __eq__(self, other):
22 del self.other
30 a.other = b
31 b.other = a
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_binop.py86 def __add__(self, other):
88 if isint(other):
89 other = Rat(other)
90 if isRat(other):
91 return Rat(self.__num*other.__den + other.__num*self.__den,
92 self.__den*other.__den)
93 if isnum(other):
94 return float(self) + other
[all...]
H A Dtest_coercion.py14 def __coerce__(self, other):
15 if isinstance(other, CoerceNumber):
16 return self.arg, other.arg
18 return (self.arg, other)
24 def __coerce__(self, other):
25 if isinstance(other, CoerceTo):
26 return self.arg, other.arg
28 return self.arg, other
39 def __add__(self,other):
40 return self.arg + other
[all...]
H A Dtest_compare.py15 def __coerce__(self, other):
16 if isinstance(other, Coerce):
17 return self.arg, other.arg
19 return self.arg, other
28 def __cmp__(self, other):
29 return cmp(self.arg, other)
H A Dtest_richcmp.py13 def __lt__(self, other):
14 return self.x < other
16 def __le__(self, other):
17 return self.x <= other
19 def __eq__(self, other):
20 return self.x == other
22 def __ne__(self, other):
23 return self.x != other
25 def __gt__(self, other):
26 return self.x > other
[all...]
H A Dtest_descrtut.py30 def merge(self, other):
31 for key in other:
33 self[key] = other[key]
122 def merge(self, other):
123 for key in other:
125 self[key] = other[key]
130 space for exactly these in the instance. When __slots__ is used, other
285 This prints "classmethod __main__.D 1" both times; in other words, the
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
H A DComplex.py160 def __cmp__(self, other):
161 other = ToComplex(other)
162 return cmp((self.re, self.im), (other.re, other.im))
164 def __rcmp__(self, other):
165 other = ToComplex(other)
166 return cmp(other, self)
178 def __add__(self, other)
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
H A Dversion.py58 # __cmp__ (self, other) - compare two version numbers ('other' may
136 def __cmp__ (self, other):
137 if isinstance(other, StringType):
138 other = StrictVersion(other)
140 compare = cmp(self.version, other.version)
144 # case 2: self has prerelease, other doesn't; other is greater
145 # case 3: self doesn't have prerelease, other doe
[all...]
/device/google/cuttlefish_common/common/libs/time/
H A Dmonotonic_time.h67 TimeDifference operator+(const TimeDifference& other) const {
69 ret.tv_nsec = (ts_.tv_nsec + other.ts_.tv_nsec) % 1000000000;
70 ret.tv_sec = (ts_.tv_sec + other.ts_.tv_sec) +
71 (ts_.tv_nsec + other.ts_.tv_nsec) / 1000000000;
72 return TimeDifference(ret, scale_ < other.scale_ ? scale_: other.scale_);
75 TimeDifference operator-(const TimeDifference& other) const {
79 ret.tv_nsec = (1000000000 + ts_.tv_nsec - other.ts_.tv_nsec) % 1000000000;
80 ret.tv_sec = (ts_.tv_sec - other.ts_.tv_sec) -
81 (ts_.tv_nsec < other
201 operator +=(const TimeDifference& other) argument
211 operator -=(const TimeDifference& other) argument
[all...]
/device/google/cuttlefish_common/host/libs/vadb/
H A Dusb_cmd.h47 // (other than RequestHeader) should be sent.
53 // (other than ResponseHeader) should be received.
59 USBCommand(const USBCommand& other) = delete; member in class:vadb::USBCommand
60 USBCommand& operator=(const USBCommand& other) = delete; member in class:vadb::USBCommand
H A Dusb_cmd_attach.h41 USBCmdAttach(const USBCmdAttach& other) = delete; member in class:vadb::USBCmdAttach
42 USBCmdAttach& operator=(const USBCmdAttach& other) = delete; member in class:vadb::USBCmdAttach
/device/google/cuttlefish_common/common/libs/auto_resources/
H A Dauto_resources.h179 void Swap(AutoFreeBuffer& other) { argument
181 data_ = other.data_;
182 other.data_ = temp_ptr;
185 size_ = other.size_;
186 other.size_ = temp_size;
189 reserve_size_ = other.reserve_size_;
190 other.reserve_size_ = temp_size;
193 bool operator==(const AutoFreeBuffer& other) const {
194 return (size_ == other.size_) && !memcmp(data_, other
[all...]
/device/google/cuttlefish_common/host/libs/usbip/
H A Ddevice_pool.h34 bool operator<(BusDevNumber other) const {
36 (other.bus_number << 16 | other.dev_number);
H A Dvhci_instrument.h68 VHCIInstrument(const VHCIInstrument& other) = delete; member in class:vadb::usbip::VHCIInstrument
69 VHCIInstrument& operator=(const VHCIInstrument& other) = delete; member in class:vadb::usbip::VHCIInstrument

Completed in 195 milliseconds

12345678