Home
last modified time | relevance | path

Searched refs:ip_int (Results 1 – 1 of 1) sorted by relevance

/third_party/python/Lib/
Dipaddress.py448 def _prefix_from_ip_int(cls, ip_int): argument
460 trailing_zeroes = _count_righthand_zero_bits(ip_int,
463 leading_ones = ip_int >> trailing_zeroes
467 details = ip_int.to_bytes(byteslen, 'big')
517 ip_int = cls._ip_int_from_string(ip_str)
525 return cls._prefix_from_ip_int(ip_int)
530 ip_int ^= cls._ALL_ONES
532 return cls._prefix_from_ip_int(ip_int)
1239 def _string_from_ip_int(cls, ip_int): argument
1249 return '.'.join(map(str, ip_int.to_bytes(4, 'big')))
[all …]