MCPcopy Index your code
hub / github.com/python/cpython / subnet_of

Method subnet_of

Lib/ipaddress.py:1039–1041  ·  view source on GitHub ↗

Return True if this network is a subnet of other.

(self, other)

Source from the content-addressed store, hash-verified

1037 f"between {a} and {b}")
1038
1039 def subnet_of(self, other):
1040 """Return True if this network is a subnet of other."""
1041 return self._is_subnet_of(self, other)
1042
1043 def supernet_of(self, other):
1044 """Return True if this network is a supernet of other."""

Callers 4

address_excludeMethod · 0.80
test_subnet_ofMethod · 0.80
test_subnet_ofMethod · 0.80

Calls 1

_is_subnet_ofMethod · 0.95

Tested by 3

test_subnet_ofMethod · 0.64
test_subnet_ofMethod · 0.64