()
return _localhost
Return the IP address of the magic hostname 'localhost'.
Return the IP address of the magic hostname 'localhost'.
Return the IP address of the magic hostname localhost .
def localhost():
    """Return the IP address of the magic hostname 'localhost'."""
    global _localhost
    if _localhost is None:
        _localhost = socket.gethostbyname('localhost')
    return _localhost
def localhost ( ) : global _localhost if _localhost is None : _localhost = socket . gethostbyname ( 'localhost' ) return _localhost