FWIW: string.glue(sequence) (or string.bind(sequence)) result = ' '.glue(['hello', 'world']) result = ' '.bind(['hello', 'world']) string.separated(sequence): comma = ',' values = ['hello', 'world'] result = comma.separated(values) fields = [name, '*', comment, home_directory, shell ] return ':'.separated(fields)