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

Function _get_best_family

Lib/http/server.py:965–972  ·  view source on GitHub ↗
(*address)

Source from the content-addressed store, hash-verified

963
964
965def _get_best_family(*address):
966 infos = socket.getaddrinfo(
967 *address,
968 type=socket.SOCK_STREAM,
969 flags=socket.AI_PASSIVE,
970 )
971 family, type, proto, canonname, sockaddr = next(iter(infos))
972 return family, sockaddr
973
974
975def test(HandlerClass=BaseHTTPRequestHandler,

Callers 1

testFunction · 0.85

Calls 1

getaddrinfoMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…