No 1.6! (was Re: A REALLY COOL PYTHON FEATURE:)

Kevin Digweed Kevin.Digweed at dial.pipex.com
Fri May 19 12:21:28 EDT 2000


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)



More information about the Python-list mailing list