Lines Matching refs:other
5 # not be construed as granting a license to any other intellectual
23 # documentation and/or other materials provided with the distribution;
484 def __mul__(self, other):
486 newobj.value *= NumericParamValue.unwrap(other)
492 def __truediv__(self, other):
494 newobj.value /= NumericParamValue.unwrap(other)
498 def __floordiv__(self, other):
500 newobj.value //= NumericParamValue.unwrap(other)
505 def __add__(self, other):
507 newobj.value += NumericParamValue.unwrap(other)
511 def __sub__(self, other):
513 newobj.value -= NumericParamValue.unwrap(other)
517 def __iadd__(self, other):
518 self.value += NumericParamValue.unwrap(other)
522 def __isub__(self, other):
523 self.value -= NumericParamValue.unwrap(other)
527 def __imul__(self, other):
528 self.value *= NumericParamValue.unwrap(other)
532 def __itruediv__(self, other):
533 self.value /= NumericParamValue.unwrap(other)
537 def __ifloordiv__(self, other):
538 self.value //= NumericParamValue.unwrap(other)
542 def __lt__(self, other):
543 return self.value < NumericParamValue.unwrap(other)
743 def __add__(self, other):
744 if isinstance(other, Addr):
745 return self.value + other.value
747 return self.value + other
1035 def __eq__(self, other):
1036 if isinstance(other, IpAddress):
1037 return self.ip == other.ip
1038 elif isinstance(other, str):
1040 return self.ip == convert.toIpAddress(other)
1044 return self.ip == other
1046 def __ne__(self, other):
1047 return not (self == other)
1112 def __eq__(self, other):
1113 if isinstance(other, IpNetmask):
1114 return self.ip == other.ip and self.netmask == other.netmask
1115 elif isinstance(other, str):
1117 return (self.ip, self.netmask) == convert.toIpNetmask(other)
1186 def __eq__(self, other):
1187 if isinstance(other, IpWithPort):
1188 return self.ip == other.ip and self.port == other.port
1189 elif isinstance(other, str):
1191 return (self.ip, self.port) == convert.toIpWithPort(other)
1896 def connect(self, other):
1897 if isinstance(other, VectorPortRef):
1899 other = other._get_next()
1902 self, self.peer, other);
1903 self.peer = other
1905 if proxy.isproxy(other):
1906 other.set_param_desc(PortParamDesc())
1908 elif not isinstance(other, PortRef):
1910 % (other, self))
1912 if not Port.is_compat(self, other):
1914 "are not compatible", self, other, self.role, other.role)
1916 if other.peer is not self:
1917 other.connect(self)
2047 def connect(self, other):
2048 if isinstance(other, (list, tuple)):
2052 for ref in other:
2056 self._get_next().connect(other)