
Guido van Rossum wrote:
join() is special indeed, but what about the semantics we talked about last year (?)...
join(seq, sep) := seq[0] + sep + seq[1] + sep + ... + seq[n]
This should fit all uses of join() (accept maybe os.path.join).
This is much more general than the current definition -- e.g. join(range(5), 0) would yield 10. I'm not too keen on widening the definition this much.
No, if n is the length of the sequence, the above definition would calculate 10 and then raise IndexError :-) ciao - chris -- Christian Tismer :^) <mailto:tismer@tismer.com> Mission Impossible 5oftware : Have a break! Take a ride on Python's Kaunstr. 26 : *Starship* http://starship.python.net 14163 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF where do you want to jump today? http://www.stackless.com