Lines Matching full:other
360 def __add__(self, other):
361 return int(self) + int(other)
363 def __sub__(self, other):
364 return int(self) - int(other)
366 def __mul__(self, other):
367 return int(self) * int(other)
369 def __floordiv__(self, other):
370 return int(self) // int(other)
372 def __mod__(self, other):
373 return int(self) % int(other)
375 def __divmod__(self, other):
376 return int(self) % int(other)
378 def __pow__(self, other):
379 return int(self) ** int(other)
381 def __lshift__(self, other):
382 return int(self) << int(other)
384 def __rshift__(self, other):
385 return int(self) >> int(other)
387 def __and__(self, other):
388 return int(self) & int(other)
390 def __xor__(self, other):
391 return int(self) ^ int(other)
393 def __or__(self, other):
394 return int(self) | int(other)
396 def __div__(self, other):
397 return int(self) / int(other)
399 def __truediv__(self, other):
400 return int(self) / int(other)
402 def __iadd__(self, other):
403 result = self.__add__(other)
407 def __isub__(self, other):
408 result = self.__sub__(other)
412 def __imul__(self, other):
413 result = self.__mul__(other)
417 def __idiv__(self, other):
418 result = self.__div__(other)
422 def __itruediv__(self, other):
423 result = self.__truediv__(other)
427 def __ifloordiv__(self, other):
428 result = self.__floordiv__(self, other)
432 def __imod__(self, other):
433 result = self.__and__(self, other)
437 def __ipow__(self, other):
438 result = self.__pow__(self, other)
442 def __ipow__(self, other, modulo):
443 result = self.__pow__(self, other, modulo)
447 def __ilshift__(self, other):
448 result = self.__lshift__(other)
452 def __irshift__(self, other):
453 result = self.__rshift__(other)
457 def __iand__(self, other):
458 result = self.__and__(self, other)
462 def __ixor__(self, other):
463 result = self.__xor__(self, other)
467 def __ior__(self, other):
468 result = self.__ior__(self, other)
507 def __eq__(self, other):
508 if type(other) is int:
509 return int(self) == other
510 elif type(other) is str:
511 return str(self) == other
512 elif type(other) is value:
518 other_val = other.sbvalue.GetValueAsUnsigned(other_err)
520 raise ValueError("unable to extract value of other")
522 raise TypeError("Unknown type %s, No equality operation defined." % str(type(other)))
524 def __ne__(self, other):
525 return not self.__eq__(other)