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

Method _get_networks_key

Lib/ipaddress.py:914–922  ·  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

912 return 0
913
914 def _get_networks_key(self):
915 """Network-only key function.
916
917 Returns an object that identifies this address' network and
918 netmask. This function is a suitable "key" argument for sorted()
919 and list.sort().
920
921 """
922 return (self.version, self.network_address, self.netmask)
923
924 def subnets(self, prefixlen_diff=1, new_prefix=None):
925 """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