#NEWLINE# def join_ipv4_segments( segments ) : #NEWLINE# #INDENT# '\n    Helper method to join ip numeric segment pieces back into a full\n    ip address.\n\n    :param segments: IPv4 segments to join.\n    :type segments: ``list`` or ``tuple``\n\n    :return: IPv4 address.\n    :rtype: ``str``\n    ' #NEWLINE# return '.' . join ( [ str ( s ) for s in s ] )