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

Method _get_networks_key

Lib/ipaddress.py:911–919  ·  view source on GitHub ↗

Network-only key function. Returns an object that identifies this address' network and netmask. This function is a suitable "key" argument for sorted() and list.sort().

(self)

Source from the content-addressed store, hash-verified

909 return 0
910
911 def _get_networks_key(self):
912 """Network-only key function.
913
914 Returns an object that identifies this address' network and
915 netmask. This function is a suitable "key" argument for sorted()
916 and list.sort().
917
918 """
919 return (self.version, self.network_address, self.netmask)
920
921 def subnets(self, prefixlen_diff=1, new_prefix=None):
922 """The subnets which join to make the current subnet.

Callers 2

get_mixed_type_keyFunction · 0.80
testNetworkComparisonMethod · 0.80

Calls

no outgoing calls

Tested by 1

testNetworkComparisonMethod · 0.64