MCPcopy Index your code
hub / github.com/RustPython/RustPython / subnet_of

Method subnet_of

Lib/ipaddress.py:1042–1044  ·  view source on GitHub ↗

Return True if this network is a subnet of other.

(self, other)

Source from the content-addressed store, hash-verified

1040 f"between {a} and {b}")
1041
1042 def subnet_of(self, other):
1043 """Return True if this network is a subnet of other."""
1044 return self._is_subnet_of(self, other)
1045
1046 def supernet_of(self, other):
1047 """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