Lines Matching full:other

307     def __eq__(self, other):
308 return not self.__ne__(other)
367 def __add__(self, other):
368 return int(self) + int(other)
370 def __sub__(self, other):
371 return int(self) - int(other)
373 def __mul__(self, other):
374 return int(self) * int(other)
376 def __floordiv__(self, other):
377 return int(self) // int(other)
379 def __mod__(self, other):
380 return int(self) % int(other)
382 def __divmod__(self, other):
383 return int(self) % int(other)
385 def __pow__(self, other):
386 return int(self) ** int(other)
388 def __lshift__(self, other):
389 return int(self) << int(other)
391 def __rshift__(self, other):
392 return int(self) >> int(other)
394 def __and__(self, other):
395 return int(self) & int(other)
397 def __xor__(self, other):
398 return int(self) ^ int(other)
400 def __or__(self, other):
401 return int(self) | int(other)
403 def __div__(self, other):
404 return int(self) / int(other)
406 def __truediv__(self, other):
407 return int(self) / int(other)
409 def __iadd__(self, other):
410 result = self.__add__(other)
414 def __isub__(self, other):
415 result = self.__sub__(other)
419 def __imul__(self, other):
420 result = self.__mul__(other)
424 def __idiv__(self, other):
425 result = self.__div__(other)
429 def __itruediv__(self, other):
430 result = self.__truediv__(other)
434 def __ifloordiv__(self, other):
435 result = self.__floordiv__(self, other)
439 def __imod__(self, other):
440 result = self.__and__(self, other)
444 def __ipow__(self, other):
445 result = self.__pow__(self, other)
449 def __ipow__(self, other, modulo):
450 result = self.__pow__(self, other, modulo)
454 def __ilshift__(self, other):
455 result = self.__lshift__(other)
459 def __irshift__(self, other):
460 result = self.__rshift__(other)
464 def __iand__(self, other):
465 result = self.__and__(self, other)
469 def __ixor__(self, other):
470 result = self.__xor__(self, other)
474 def __ior__(self, other):
475 result = self.__ior__(self, other)
514 def __eq__(self, other):
515 if type(other) is int:
516 return int(self) == other
517 elif type(other) is str:
518 return str(self) == other
519 elif type(other) is value:
525 other_val = other.sbvalue.GetValueAsUnsigned(other_err)
527 raise ValueError("unable to extract value of other")
529 raise TypeError("Unknown type %s, No equality operation defined." % str(type(other)))
531 def __ne__(self, other):
532 return not self.__eq__(other)