Guido van Rossum wrote:
join() is special indeed, but what about the semantics we talked about last year (?)...
join(seq, sep) := seq + sep + seq + 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