Torsten Bronger wrote:
However, join() is really bizarre. The list rather than the separator should be the leading actor.
No, because join must work with _any sequence_, and there is no "sequence" type to put the join method on.
This semantic certainly sets python apart from many other languages. >>> '-'.join(c for c in 'hello') 'h-e-l-l-o' >>> -- http://mail.python.org/mailman/listinfo/python-list